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 longFields inherited from class CayenneEvent
info, postedBy, subjectFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotEvent(Object source, Object postedBy, Map<ObjectId, DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Method Summary
Methods inherited from class CayenneEvent
getInfo, getPostedBy, getSubject, setPostedBy, setSubjectModifier and TypeMethodDescriptiongetInfo()Returns an object that posted this event.voidsetPostedBy(Object postedBy) voidsetSubject(EventSubject subject) Methods inherited from class EventObject
getSource
-
Field Details
-
timestamp
protected long timestamp -
deletedIds
-
invalidatedIds
-
modifiedDiffs
-
indirectlyModifiedIds
-
-
Constructor Details
-
SnapshotEvent
public SnapshotEvent(Object source, Object postedBy, Map<ObjectId, DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds)
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
getModifiedDiffs
-
getDeletedIds
-
getInvalidatedIds
-
getIndirectlyModifiedIds
-
toString
- Overrides:
toStringin classEventObject
-