X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fprocedure%2FSyncContextProcedure.java;fp=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fprocedure%2FSyncContextProcedure.java;h=93c745fb88b70df0ecab66eb2929a19f52f6635f;hb=6326b65c5c6a785aadcb615cb95ceadd8f53964a;hp=0000000000000000000000000000000000000000;hpb=6d56f5ff3422fd5200d396d325422a4ccaf19f94;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/procedure/SyncContextProcedure.java b/bundles/org.simantics.db/src/org/simantics/db/procedure/SyncContextProcedure.java new file mode 100644 index 000000000..93c745fb8 --- /dev/null +++ b/bundles/org.simantics.db/src/org/simantics/db/procedure/SyncContextProcedure.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.db.procedure; + +import org.simantics.db.ReadGraph; + +/* + * + * Execute or exception is called exactly once. + * + */ +public interface SyncContextProcedure { + + void execute(ReadGraph graph, Context context, Result result); + void exception(ReadGraph graph, Throwable throwable); + +}