1 package org.simantics.acorn;
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 UndoClusterSupport implements ClusterSupport {
14 final ClusterManager impl;
16 public UndoClusterSupport(ClusterManager impl) {
21 public int createClusterKeyByClusterUID(ClusterUID clusterUID,
23 throw new UnsupportedOperationException();
27 public ClusterBase getClusterByClusterUIDOrMake(ClusterUID clusterUID) {
28 throw new UnsupportedOperationException();
32 public ClusterBase getClusterByClusterId(long clusterId) {
33 throw new UnsupportedOperationException();
37 public ClusterBase getClusterByClusterKey(int clusterKey) {
39 return impl.getClusterByClusterKey(clusterKey);
40 } catch (DatabaseException e) {
47 public int getClusterKeyByClusterUIDOrMake(ClusterUID clusterUID) {
48 throw new UnsupportedOperationException();
52 public ClusterBase getClusterByResourceKey(int resourceKey) {
53 throw new UnsupportedOperationException();
57 public long getClusterIdOrCreate(ClusterUID clusterUID) {
58 throw new UnsupportedOperationException();
62 public void addStatement(Object cluster) {
66 public void cancelStatement(Object cluster) {
67 throw new UnsupportedOperationException();
71 public void removeStatement(Object cluster) {
75 public void cancelValue(Object cluster) {
76 throw new UnsupportedOperationException();
80 public void removeValue(Object cluster) {
81 throw new UnsupportedOperationException();
85 public void setValue(Object cluster, long clusterId, byte[] bytes,
90 public void modiValue(Object cluster, long clusterId, long voffset,
91 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,
108 throw new UnsupportedOperationException();
112 public void addStatementIndex(Object cluster, int resourceKey,
113 ClusterUID clusterUID, byte op) {
117 public void setStreamOff(boolean setOff) {
118 throw new UnsupportedOperationException();
122 public boolean getStreamOff() {
123 throw new UnsupportedOperationException();
127 public InputStream getValueStreamEx(int resourceIndex, long clusterId)
128 throws DatabaseException {
129 throw new UnsupportedOperationException();
133 public byte[] getValueEx(int resourceIndex, long clusterId)
134 throws DatabaseException {
135 throw new UnsupportedOperationException();
139 public byte[] getValueEx(int resourceIndex, long clusterId, long voffset,
140 int length) throws DatabaseException {
141 throw new UnsupportedOperationException();
145 public long getValueSizeEx(int resourceIndex, long clusterId)
146 throws DatabaseException {
147 throw new UnsupportedOperationException();
151 public int wait4RequestsLess(int limit) throws DatabaseException {
152 throw new UnsupportedOperationException();
156 public Session getSession() {
157 throw new UnsupportedOperationException();
161 public IClusterTable getClusterTable() {
162 throw new UnsupportedOperationException();
166 public int getClusterKeyByClusterUIDOrMake(long id1, long id2) {
167 throw new UnsupportedOperationException();