X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2FChangeSet.java;h=96ff98b61432579c2906bda103cd9ab74f850025;hb=e460fd6f0af60314e2ca28391ef7ff2043016d97;hp=5f110c4c0bb07a99c63dc887c74639e419db6303;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/ChangeSet.java b/bundles/org.simantics.db/src/org/simantics/db/ChangeSet.java index 5f110c4c0..96ff98b61 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/ChangeSet.java +++ b/bundles/org.simantics.db/src/org/simantics/db/ChangeSet.java @@ -1,80 +1,80 @@ -/******************************************************************************* - * 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; - -import java.util.Collection; - -import org.simantics.db.event.ChangeEvent; -import org.simantics.db.event.ChangeListener; -import org.simantics.db.request.Write; -import org.simantics.db.request.WriteOnly; -import org.simantics.db.service.GraphChangeListenerSupport; - -/** - * A representation of a set of changes that have been performed into the graph - * database using a write request ({@link Write}, {@link WriteOnly}). - * - *
- * The change information is allowed to be inexact in the sense that these
- * changes may represent what is attempted to commit into the database but some
- * of the changes may turn out to be null operations in the end: a claimed
- * statement may have already existed or a denied statement may not exist in the
- * first place. Hence, a ChangeSet tells what statement changes have possibly
- * been performed and what resource-bound values have possibly changed.
- *
- * @author Tuukka Lehtonen
- *
- * @see GraphChangeListenerSupport
- * @see ChangeListener
- * @see ChangeEvent
- */
-public interface ChangeSet {
-
- public interface StatementChange extends Statement {
- /**
- * @return
+ * The change information is allowed to be inexact in the sense that these
+ * changes may represent what is attempted to commit into the database but some
+ * of the changes may turn out to be null operations in the end: a claimed
+ * statement may have already existed or a denied statement may not exist in the
+ * first place. Hence, a ChangeSet tells what statement changes have possibly
+ * been performed and what resource-bound values have possibly changed.
+ *
+ * @author Tuukka Lehtonen
+ *
+ * @see GraphChangeListenerSupport
+ * @see ChangeListener
+ * @see ChangeEvent
+ */
+public interface ChangeSet {
+
+ public interface StatementChange extends Statement {
+ /**
+ * @return true
if the statement was claimed,
- * false
if denied.
- */
- boolean isClaim();
- }
-
- /**
- * TODO: specify whether the collection is considered a set or a list
- * (duplicate statements allowed or not)
- *
- * The returned collection may be shared internal state of the
- * implementation and must not be modified by the client.
- *
- * @return the set of changed statements, each either claimed or denied
- */
- Collectiontrue
if this change set contains 0 operations,
- * false
otherwise
- */
- boolean isEmpty();
-
-}
+/*******************************************************************************
+ * 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;
+
+import java.util.Collection;
+
+import org.simantics.db.event.ChangeEvent;
+import org.simantics.db.event.ChangeListener;
+import org.simantics.db.request.Write;
+import org.simantics.db.request.WriteOnly;
+import org.simantics.db.service.GraphChangeListenerSupport;
+
+/**
+ * A representation of a set of changes that have been performed into the graph
+ * database using a write request ({@link Write}, {@link WriteOnly}).
+ *
+ * true
if the statement was claimed,
+ * false
if denied.
+ */
+ boolean isClaim();
+ }
+
+ /**
+ * TODO: specify whether the collection is considered a set or a list
+ * (duplicate statements allowed or not)
+ *
+ * The returned collection may be shared internal state of the
+ * implementation and must not be modified by the client.
+ *
+ * @return the set of changed statements, each either claimed or denied
+ */
+ Collectiontrue
if this change set contains 0 operations,
+ * false
otherwise
+ */
+ boolean isEmpty();
+
+}