Class LocalDateTimeVersionStrategy
java.lang.Object
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
org.apache.openjpa.jdbc.meta.strats.ColumnVersionStrategy
org.apache.openjpa.jdbc.meta.strats.LocalDateTimeVersionStrategy
- All Implemented Interfaces:
Serializable, Strategy, VersionStrategy
Uses a
LocalDateTime for optimistic versioning.- Since:
- 4.2.0
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractVersionStrategy
vers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Return the alias of this strategy.protected intReturn the code fromJavaTypesfor the version values this strategy uses.protected ObjectnextVersion(Object version) Return the next version given the current one, which may be null.Methods inherited from class ColumnVersionStrategy
checkVersion, compare, compare, compareVersion, delete, getJavaType, insert, load, load, map, select, updateMethods inherited from class AbstractVersionStrategy
afterLoad, setVersionMethods inherited from class AbstractStrategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Strategy
customDelete, customInsert, customUpdate, initialize, isCustomDelete, isCustomInsert, isCustomUpdate
-
Field Details
-
ALIAS
- See Also:
-
-
Constructor Details
-
LocalDateTimeVersionStrategy
public LocalDateTimeVersionStrategy()
-
-
Method Details
-
getAlias
-
getJavaType
protected int getJavaType()Description copied from class:ColumnVersionStrategyReturn the code fromJavaTypesfor the version values this strategy uses. This method is only used during mapping installation.- Specified by:
getJavaTypein classColumnVersionStrategy
-
nextVersion
Description copied from class:ColumnVersionStrategyReturn the next version given the current one, which may be null.- Specified by:
nextVersionin classColumnVersionStrategy
-
getBulkUpdateValues
- Specified by:
getBulkUpdateValuesin interfaceVersionStrategy- Overrides:
getBulkUpdateValuesin classAbstractVersionStrategy- Returns:
- a
MapMap<Column, Object>specifying how to update each version column during a bulk update.
-