Package org.apache.cayenne.access.event
Class SnapshotEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.access.event.SnapshotEvent
- All Implemented Interfaces:
Serializable
public class SnapshotEvent extends CayenneEvent
Event sent on modification of the DataRowStore.
- Since:
- 1.1
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected Collection<ObjectId>deletedIdsprotected Collection<ObjectId>indirectlyModifiedIdsprotected Collection<ObjectId>invalidatedIdsprotected Map<ObjectId,DataRow>modifiedDiffsprotected longtimestampFields inherited from class org.apache.cayenne.event.CayenneEvent
info, postedBy, subjectFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors Constructor Description SnapshotEvent(Object source, Object postedBy, Map<ObjectId,DataRow> modifiedDiffs, Collection<ObjectId> deletedIds, Collection<ObjectId> invalidatedIds, Collection<ObjectId> indirectlyModifiedIds) -
Method Summary
Modifier and Type Method Description Collection<ObjectId>getDeletedIds()Collection<ObjectId>getIndirectlyModifiedIds()Collection<ObjectId>getInvalidatedIds()Map<ObjectId,DataRow>getModifiedDiffs()longgetTimestamp()StringtoString()Methods inherited from class org.apache.cayenne.event.CayenneEvent
getInfo, getPostedBy, getSubject, setPostedBy, setSubjectMethods inherited from class java.util.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
-