Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-10 04:20:36 -0400
committerEike Stepper2008-10-10 04:20:36 -0400
commit1fcba8a7576a98aed425852d9b4767d38664e10e (patch)
treef041a0d68c40f93841079d07cc13e174622aa5b5
parent288e1efd76899494d2a876fe72f54c548cb5163c (diff)
downloadcdo-1fcba8a7576a98aed425852d9b4767d38664e10e.tar.gz
cdo-1fcba8a7576a98aed425852d9b4767d38664e10e.tar.xz
cdo-1fcba8a7576a98aed425852d9b4767d38664e10e.zip
javadoc
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOInvalidationNotification.java11
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOSessionInvalidationEvent.java15
2 files changed, 25 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOInvalidationNotification.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOInvalidationNotification.java
index 24f6a87a87..6563245018 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOInvalidationNotification.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOInvalidationNotification.java
@@ -11,10 +11,21 @@
**************************************************************************/
package org.eclipse.emf.cdo;
+import org.eclipse.emf.cdo.common.id.CDOID;
+
+import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
/**
+ * A custom EMF {@link Notification notification} that is emitted to {@link Adapter adapters} of the objects in a
+ * {@link CDOView view} if {@link CDOView#setInvalidationNotificationEnabled(boolean) invalidation notification} is
+ * enabled for the view. Since the notifications are constructed out of the information in a
+ * {@link CDOSessionInvalidationEvent} (i.e. {@link CDOID CDOIDs}) they don't carry detailed change deltas. All the
+ * methods related to change deltas throw {@link UnsupportedOperationException UnsupportedOperationExceptions}.
+ *
* @author Simon McDuff
+ * @see CDOSessionInvalidationEvent
+ * @see CDOChangeSubscriptionPolicy
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface CDOInvalidationNotification extends Notification
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOSessionInvalidationEvent.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOSessionInvalidationEvent.java
index ebed95cb05..f93d28dbf9 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOSessionInvalidationEvent.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/cdo/CDOSessionInvalidationEvent.java
@@ -13,17 +13,25 @@ package org.eclipse.emf.cdo;
import org.eclipse.emf.cdo.common.id.CDOID;
import org.eclipse.emf.cdo.common.id.CDOIDAndVersion;
+import org.eclipse.emf.cdo.common.revision.CDORevision;
+
+import org.eclipse.net4j.util.event.IListener;
import java.util.Collection;
import java.util.Set;
/**
+ * An event that is emitted to registered {@link IListener listeners} of a {@link CDOSession} if
+ * {@link CDOSession#setPassiveUpdateEnabled(boolean) passive update} is enabled for the session.
+ *
* @author Eike Stepper
+ * @see CDOInvalidationNotification
+ * @see CDOChangeSubscriptionPolicy
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface CDOSessionInvalidationEvent extends CDOSessionEvent
{
- public static final long LOCAL_ROLLBACK = 0L;
+ public static final long LOCAL_ROLLBACK = CDORevision.UNSPECIFIED_DATE;
/**
* Returns the transaction that was committed and thereby caused this event to be emitted if this transaction is
@@ -37,9 +45,14 @@ public interface CDOSessionInvalidationEvent extends CDOSessionEvent
*/
public long getTimeStamp();
+ /**
+ * Returns a set of the {@link CDOID CDOIDs} and versions of the modified objects.
+ */
public Set<CDOIDAndVersion> getDirtyOIDs();
/**
+ * Returns a collection of the {@link CDOID CDOIDs} of the removed objects.
+ *
* @since 2.0
*/
public Collection<CDOID> getDetachedObjects();

Back to the top