1 package org.simantics.acorn.lru;
3 import java.io.InputStream;
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;
12 public class CachingClusterSupport implements ClusterSupport {
14 private ClusterSupport backend;
16 public CachingClusterSupport(ClusterSupport backend) {
17 this.backend = backend;
21 public int createClusterKeyByClusterUID(ClusterUID clusterUID, long clusterId) {
22 throw new UnsupportedOperationException();
26 public ClusterBase getClusterByClusterUIDOrMake(ClusterUID clusterUID) {
27 throw new UnsupportedOperationException();
31 public ClusterBase getClusterByClusterId(long clusterId) {
32 throw new UnsupportedOperationException();
36 public ClusterBase getClusterByClusterKey(int clusterKey) {
37 throw new UnsupportedOperationException();
41 public int getClusterKeyByClusterUIDOrMake(ClusterUID clusterUID) {
42 throw new UnsupportedOperationException();
46 public int getClusterKeyByClusterUIDOrMake(long id1, long id2) {
47 throw new UnsupportedOperationException();
51 public ClusterBase getClusterByResourceKey(int resourceKey) {
52 throw new UnsupportedOperationException();
56 public long getClusterIdOrCreate(ClusterUID clusterUID) {
57 throw new UnsupportedOperationException();
61 public void addStatement(Object cluster) {
62 throw new UnsupportedOperationException();
66 public void cancelStatement(Object cluster) {
67 throw new UnsupportedOperationException();
71 public void removeStatement(Object cluster) {
72 throw new UnsupportedOperationException();
76 public void cancelValue(Object cluster) {
77 throw new UnsupportedOperationException();
81 public void removeValue(Object cluster) {
82 throw new UnsupportedOperationException();
86 public void setValue(Object cluster, long clusterId, byte[] bytes, int length) {
87 throw new UnsupportedOperationException();
91 public void modiValue(Object cluster, long clusterId, long voffset, int length, byte[] bytes, int offset) {
92 throw new UnsupportedOperationException();
96 public void setImmutable(Object cluster, boolean immutable) {
97 throw new UnsupportedOperationException();
101 public void setDeleted(Object cluster, boolean deleted) {
102 throw new UnsupportedOperationException();
106 public void createResource(Object cluster, short resourceIndex, long clusterId) {
107 backend.createResource(cluster, resourceIndex, clusterId);
111 public void addStatementIndex(Object cluster, int resourceKey, ClusterUID clusterUID, byte op) {
112 throw new UnsupportedOperationException();
116 public void setStreamOff(boolean setOff) {
117 throw new UnsupportedOperationException();
121 public boolean getStreamOff() {
122 throw new UnsupportedOperationException();
126 public InputStream getValueStreamEx(int resourceIndex, long clusterId) throws DatabaseException {
127 throw new UnsupportedOperationException();
131 public byte[] getValueEx(int resourceIndex, long clusterId) throws DatabaseException {
132 throw new UnsupportedOperationException();
136 public byte[] getValueEx(int resourceIndex, long clusterId, long voffset, int length) throws DatabaseException {
137 throw new UnsupportedOperationException();
141 public long getValueSizeEx(int resourceIndex, long clusterId) throws DatabaseException {
142 throw new UnsupportedOperationException();
146 public int wait4RequestsLess(int limit) throws DatabaseException {
147 throw new UnsupportedOperationException();
151 public Session getSession() {
152 throw new UnsupportedOperationException();
156 public IClusterTable getClusterTable() {
157 throw new UnsupportedOperationException();