From: Antti Villberg Date: Sun, 7 May 2017 06:49:56 +0000 (+0300) Subject: ListIndexRoots request X-Git-Tag: v1.29.0~70^2~1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=c51c69461d3ab98f04c2c18ff10e8023d44e1ce3;p=simantics%2Fplatform.git ListIndexRoots request refs #7197 Change-Id: Ideac8aaeb23154aa94d465b838903f4fa373a458 --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ListIndexRoots.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ListIndexRoots.java new file mode 100644 index 000000000..235de059b --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ListIndexRoots.java @@ -0,0 +1,26 @@ +package org.simantics.db.layer0.request; + +import java.util.Collection; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.common.request.SingletonRead; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.util.Layer0Utils; + +/** + * Returns a set of index roots. + * + * @author Antti Villberg + */ +public class ListIndexRoots extends SingletonRead> { + + public ListIndexRoots() { + } + + @Override + public Collection perform(ReadGraph graph) throws DatabaseException { + return Layer0Utils.listIndexRoots(graph); + } + +}