]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.acorn/src/org/simantics/acorn/lru/CachingClusterSupport.java
Merge remote-tracking branch 'origin/svn' commit 'ccc1271c9d6657fb9dcf4cf3cb115fa0c8c...
[simantics/platform.git] / bundles / org.simantics.acorn / src / org / simantics / acorn / lru / CachingClusterSupport.java
1 package org.simantics.acorn.lru;
2
3 import java.io.InputStream;
4
5 import org.simantics.db.Session;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.db.impl.ClusterBase;
8 import org.simantics.db.impl.ClusterSupport;
9 import org.simantics.db.impl.IClusterTable;
10 import org.simantics.db.service.ClusterUID;
11
12 public class CachingClusterSupport implements ClusterSupport {
13         
14         private ClusterSupport backend;
15         
16         public CachingClusterSupport(ClusterSupport backend) {
17                 this.backend = backend;
18         }
19
20         @Override
21         public int createClusterKeyByClusterUID(ClusterUID clusterUID, long clusterId) {
22                 throw new UnsupportedOperationException();
23         }
24
25         @Override
26         public ClusterBase getClusterByClusterUIDOrMake(ClusterUID clusterUID) {
27                 throw new UnsupportedOperationException();
28         }
29
30         @Override
31         public ClusterBase getClusterByClusterId(long clusterId) {
32                 throw new UnsupportedOperationException();
33         }
34
35         @Override
36         public ClusterBase getClusterByClusterKey(int clusterKey) {
37                 throw new UnsupportedOperationException();
38         }
39
40         @Override
41         public int getClusterKeyByClusterUIDOrMake(ClusterUID clusterUID) {
42                 throw new UnsupportedOperationException();
43         }
44
45         @Override
46         public int getClusterKeyByClusterUIDOrMake(long id1, long id2) {
47                 throw new UnsupportedOperationException();
48         }
49
50         @Override
51         public ClusterBase getClusterByResourceKey(int resourceKey) {
52                 throw new UnsupportedOperationException();
53         }
54
55         @Override
56         public long getClusterIdOrCreate(ClusterUID clusterUID) {
57                 throw new UnsupportedOperationException();
58         }
59
60         @Override
61         public void addStatement(Object cluster) {
62                 throw new UnsupportedOperationException();
63         }
64
65         @Override
66         public void cancelStatement(Object cluster) {
67                 throw new UnsupportedOperationException();
68         }
69
70         @Override
71         public void removeStatement(Object cluster) {
72                 throw new UnsupportedOperationException();
73         }
74
75         @Override
76         public void cancelValue(Object cluster) {
77                 throw new UnsupportedOperationException();
78         }
79
80         @Override
81         public void removeValue(Object cluster) {
82                 throw new UnsupportedOperationException();
83         }
84
85         @Override
86         public void setValue(Object cluster, long clusterId, byte[] bytes, int length) {
87                 throw new UnsupportedOperationException();
88         }
89
90         @Override
91         public void modiValue(Object cluster, long clusterId, long voffset, int length, byte[] bytes, int offset) {
92                 throw new UnsupportedOperationException();
93         }
94
95         @Override
96         public void setImmutable(Object cluster, boolean immutable) {
97                 throw new UnsupportedOperationException();
98         }
99
100         @Override
101         public void setDeleted(Object cluster, boolean deleted) {
102                 throw new UnsupportedOperationException();
103         }
104
105         @Override
106         public void createResource(Object cluster, short resourceIndex, long clusterId) {
107                 backend.createResource(cluster, resourceIndex, clusterId);
108         }
109
110         @Override
111         public void addStatementIndex(Object cluster, int resourceKey, ClusterUID clusterUID, byte op) {
112                 throw new UnsupportedOperationException();
113         }
114
115         @Override
116         public void setStreamOff(boolean setOff) {
117                 throw new UnsupportedOperationException();
118         }
119
120         @Override
121         public boolean getStreamOff() {
122                 throw new UnsupportedOperationException();
123         }
124
125         @Override
126         public InputStream getValueStreamEx(int resourceIndex, long clusterId) throws DatabaseException {
127                 throw new UnsupportedOperationException();
128         }
129
130         @Override
131         public byte[] getValueEx(int resourceIndex, long clusterId) throws DatabaseException {
132                 throw new UnsupportedOperationException();
133         }
134
135         @Override
136         public byte[] getValueEx(int resourceIndex, long clusterId, long voffset, int length) throws DatabaseException {
137                 throw new UnsupportedOperationException();
138         }
139
140         @Override
141         public long getValueSizeEx(int resourceIndex, long clusterId) throws DatabaseException {
142                 throw new UnsupportedOperationException();
143         }
144
145         @Override
146         public int wait4RequestsLess(int limit) throws DatabaseException {
147                 throw new UnsupportedOperationException();
148         }
149
150         @Override
151         public Session getSession() {
152                 throw new UnsupportedOperationException();
153         }
154
155         @Override
156         public IClusterTable getClusterTable() {
157                 throw new UnsupportedOperationException();
158         }
159
160 }