From c51c69461d3ab98f04c2c18ff10e8023d44e1ce3 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Sun, 7 May 2017 09:49:56 +0300 Subject: [PATCH] ListIndexRoots request refs #7197 Change-Id: Ideac8aaeb23154aa94d465b838903f4fa373a458 --- .../db/layer0/request/ListIndexRoots.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/ListIndexRoots.java 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); + } + +} -- 2.47.1