public class SuperclassVersionStrategy extends AbstractVersionStrategy
vers
Constructor and Description |
---|
SuperclassVersionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
afterLoad(OpenJPAStateManager sm,
JDBCStore store)
This method is called after data is loaded into the instance, in
case the version indicator works off of a state image.
|
boolean |
checkVersion(OpenJPAStateManager sm,
JDBCStore store,
boolean updateVersion)
Checks the version of the given state manager with the version
stored in memory.
|
int |
compareVersion(Object v1,
Object v2) |
Map |
getBulkUpdateValues() |
load, load, select, setVersion
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update
public void afterLoad(OpenJPAStateManager sm, JDBCStore store)
VersionStrategy
afterLoad
in interface VersionStrategy
afterLoad
in class AbstractVersionStrategy
public boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException
VersionStrategy
checkVersion
in interface VersionStrategy
checkVersion
in class AbstractVersionStrategy
SQLException
public int compareVersion(Object v1, Object v2)
compareVersion
in interface VersionStrategy
compareVersion
in class AbstractVersionStrategy
StoreManager.compareVersion(org.apache.openjpa.kernel.OpenJPAStateManager, java.lang.Object, java.lang.Object)
public Map getBulkUpdateValues()
getBulkUpdateValues
in interface VersionStrategy
getBulkUpdateValues
in class AbstractVersionStrategy
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.