Class SnapshotEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.access.event.SnapshotEvent
- All Implemented Interfaces:
Serializable
Event sent on modification of the DataRowStore.
- Since:
- 1.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<ObjectId> protected Collection<ObjectId> protected Collection<ObjectId> protected longprotected longFields inherited from class CayenneEvent
postedBy, subjectFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotEvent(Object source, Object postedBy, long version, Map<ObjectId, Map<String, Object>> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Method Summary
Modifier and TypeMethodDescriptionReturns the changed keys of each modified snapshot, with their new values.longlongReturns thesnapshot versionof the modified snapshots, orSnapshotVersion.NONEif none were modified.toString()Methods inherited from class CayenneEvent
getPostedBy, getSubject, setPostedBy, setSubjectMethods inherited from class EventObject
getSource
-
Field Details
-
timestamp
protected long timestamp -
version
protected long version -
deletedIds
-
invalidatedIds
-
modifiedDiffs
-
indirectlyModifiedIds
-
-
Constructor Details
-
SnapshotEvent
public SnapshotEvent(Object source, Object postedBy, long version, Map<ObjectId, Map<String, Object>> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) - Parameters:
version- thesnapshot versionof the modified snapshots, which are of one operation, orSnapshotVersion.NONEif none were modifiedmodifiedDiffs- the changed keys of each modified snapshot, with their new values- Since:
- 5.0
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
getVersion
public long getVersion()Returns thesnapshot versionof the modified snapshots, orSnapshotVersion.NONEif none were modified.- Since:
- 5.0
-
getModifiedDiffs
-
getDeletedIds
-
getInvalidatedIds
-
getIndirectlyModifiedIds
-
toString
- Overrides:
toStringin classEventObject
-