import org.simantics.db.service.ClusterUID;
import org.simantics.db.service.SerialisationSupport;
import org.simantics.db.service.XSupport;
+import org.simantics.utils.datastructures.Pair;
public class XSupportImpl implements XSupport {
final private boolean DEBUG = false;
session.clusterSetsSupport.clear();
}
}
+
+ @Override
+ public Pair<Boolean, Boolean> getServiceMode() {
+ return Pair.make((session.serviceMode & 1) == 1, (session.serviceMode & 2) == 2);
+ }
+
@Override
public Resource convertDelayedResourceToResource(Resource resource) {
return DelayedWriteGraph.convertDelayedResource(resource);
public boolean rolledback() {
return session.graphSession.rolledback();
}
+
+ @Override
+ public boolean isClusterLoaded(ClusterUID clusterUID) throws DatabaseException {
+ ClusterImpl clusterImpl = session.clusterTable.getClusterByClusterUIDOrMakeProxy(clusterUID);
+ return clusterImpl.isLoaded();
+ }
+
}