Class ConcurrencyVersionRetrieval
java.lang.Object
com.onenetwork.platform.data.model.ModelRetrieval
com.onenetwork.platform.data.model.ConcurrencyVersionRetrieval
- All Implemented Interfaces:
ModelQueryComponent
public class ConcurrencyVersionRetrieval extends ModelRetrieval
Used to form the concurrencyVersion retrieval clause of a Model query.
Create through
ModelQuery
.
When ConcurrencyVersionRetrieval query component is provided during read operations,
retrieved models along-with their child level models will be populated with a transient field
called ConcurrencyVersion that contains Long epoch value derived from LastModifiedDate(for top-level models)
or LevelModifedDate(child-level models). ConcurrencyVersion field represents the version of the model that was
read from database.
Whenever an update is performed on a model with ConcurrencyVersion set, a check for
concurrencyVersion is done before writing to avoid any updates on stale versions of that model in database.-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TRANSIENT_KEY
-
Method Summary
-
Field Details
-
TRANSIENT_KEY
public static final java.lang.String TRANSIENT_KEY- See Also:
- Constant Field Values
-