X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.db%2Fscl%2FSimantics%2FDBSupport.scl;h=f6d1453f08f484c6fbde645cd56177e4cd5ace25;hp=ee61b88b1e39a9be685b19731a12141161b9f47a;hb=bfdceb3b5b0e4967358277cd506f237c9ee364c3;hpb=bc872011464c2c2f2b8c1dc045e71a1c748e827e diff --git a/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl b/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl index ee61b88b1..f6d1453f0 100644 --- a/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl +++ b/bundles/org.simantics.scl.db/scl/Simantics/DBSupport.scl @@ -1,6 +1,15 @@ 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 + importJava "org.simantics.scl.db.SCLFunctions" where collectClusters :: () countQueries :: Integer @@ -18,3 +27,6 @@ importJava "org.simantics.db.layer0.util.Layer0Utils" where //emptyTrashBin :: () emptyTrashBin = emptyTrashBinWithMonitor $ createNullProgressMonitor () + +importJava "org.simantics.db.service.ClusterUID" where + data ClusterUID