package fi.vtt.simantics.procore.internal;
+import java.io.IOException;
+
import org.simantics.db.Database;
import org.simantics.db.Resource;
import org.simantics.db.Session;
public boolean rolledback() {
return session.graphSession.rolledback();
}
+
+ @Override
+ public boolean isClusterLoaded(ClusterUID clusterUID) throws DatabaseException {
+ ClusterImpl clusterImpl = session.clusterTable.getClusterByClusterUIDOrMakeProxy(clusterUID);
+ return clusterImpl.isLoaded();
+ }
+
+ @Override
+ public void saveQueries() throws DatabaseException {
+ try {
+ session.queryProvider2.save();
+ } catch (IOException e) {
+ throw new DatabaseException(e);
+ }
+ }
+
}