4 importJava "org.simantics.db.common.utils.CommonDBUtils" where
6 listClusters :: <ReadGraph> [ClusterUID]
7 resourcesByCluster :: ClusterUID -> <ReadGraph> [Resource]
8 directStatements :: Resource -> Boolean -> <ReadGraph> [Statement]
9 garbageResources :: <ReadGraph> [Resource]
10 clusterUIDOfResource :: Resource -> <ReadGraph> ClusterUID
11 isClusterLoaded :: ClusterUID -> <ReadGraph> Boolean
13 importJava "org.simantics.scl.db.SCLFunctions" where
14 collectClusters :: <Proc> ()
15 countQueries :: <ReadGraph> Integer
17 restrictQueries amount step maxTimeInMs
19 Collects some DB queries. Tries to reach at maximum 'amount' queries.
20 Uses at maximum 'maxTimeInMs' milliseconds in 'step' millisecond stints.
22 restrictQueries :: Integer -> Integer -> Integer -> <ReadGraph> ()
24 importJava "org.simantics.db.layer0.util.Layer0Utils" where
25 @JavaName emptyTrashBin
26 emptyTrashBinWithMonitor :: ProgressMonitor -> <Proc> ()
28 //emptyTrashBin :: <Proc> ()
29 emptyTrashBin = emptyTrashBinWithMonitor $ createNullProgressMonitor ()
31 importJava "org.simantics.db.service.ClusterUID" where