1 package org.simantics.db.layer0.request;
3 import java.util.Collection;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.Resource;
7 import org.simantics.db.common.request.SingletonRead;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.db.layer0.util.Layer0Utils;
12 * Returns a set of index roots.
14 * @author Antti Villberg
16 public class ListIndexRoots extends SingletonRead<Collection<Resource>> {
18 public ListIndexRoots() {
22 public Collection<Resource> perform(ReadGraph graph) throws DatabaseException {
23 return Layer0Utils.listIndexRoots(graph);