X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph.db%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fdb%2FTransferableGraphImporter.java;fp=bundles%2Forg.simantics.graph.db%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fdb%2FTransferableGraphImporter.java;h=f6024fab71e65ab57444e926b91131ceedf35b64;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImporter.java b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImporter.java new file mode 100644 index 000000000..f6024fab7 --- /dev/null +++ b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImporter.java @@ -0,0 +1,13 @@ +package org.simantics.graph.db; + +import org.simantics.db.Resource; +import org.simantics.db.WriteOnlyGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.service.SerialisationSupport; + +public interface TransferableGraphImporter { + + public Resource createChild(WriteOnlyGraph graph, Resource parent, Resource child, String name) throws DatabaseException; + public long[] getResourceIds(SerialisationSupport serializer) throws DatabaseException; + +}