X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.db%2Fscl%2FSimantics%2FDBSupport.scl;h=eddcba75bbe074dcf19b268a1488296d05f9f048;hb=HEAD;hp=ee61b88b1e39a9be685b19731a12141161b9f47a;hpb=98215de158f07c580afabbba0a28cb0d03154b12;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl b/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl index ee61b88b1..eddcba75b 100644 --- a/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl +++ b/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl @@ -1,6 +1,16 @@ import "UI/Progress" import "Simantics/DB" +importJava "org.simantics.db.common.utils.CommonDBUtils" where + + listClusters :: [ClusterUID] + resourcesByCluster :: ClusterUID -> [Resource] + directStatements :: Resource -> Boolean -> [Statement] + garbageResources :: [Resource] + clusterUIDOfResource :: Resource -> ClusterUID + isClusterLoaded :: ClusterUID -> Boolean + setImmutable :: Resource -> Boolean -> () + importJava "org.simantics.scl.db.SCLFunctions" where collectClusters :: () countQueries :: Integer @@ -18,3 +28,6 @@ importJava "org.simantics.db.layer0.util.Layer0Utils" where //emptyTrashBin :: () emptyTrashBin = emptyTrashBinWithMonitor $ createNullProgressMonitor () + +importJava "org.simantics.db.service.ClusterUID" where + data ClusterUID