Class ObjectSnapshots
java.lang.Object
org.apache.cayenne.access.ObjectSnapshots
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataRowsnapshot(DataContext context, Persistent object, long version) Returns aDataRowreflecting the current, possibly uncommitted, state of an object registered in the given context, with the given snapshot version.
-
Method Details
-
snapshot
Returns aDataRowreflecting the current, possibly uncommitted, state of an object registered in the given context, with the given snapshot version.Warning: the snapshot is partial if the object, or a related object that propagates its key to it, has a temporary id. Do not use it where a DataRow has to represent the complete object state.
- Parameters:
context- the context the object is registered inobject- the object to snapshotversion- the snapshot version of the returned row
-