public abstract class AbstractVersionStrategy extends AbstractStrategy implements VersionStrategy
| Modifier and Type | Field and Description |
|---|---|
protected Version |
vers
The owning version.
|
| Constructor and Description |
|---|
AbstractVersionStrategy() |
| 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() |
Object |
load(OpenJPAStateManager sm,
JDBCStore store,
Result res)
Load data.
|
Object |
load(OpenJPAStateManager sm,
JDBCStore store,
Result res,
Joins joins)
Load data.
|
boolean |
select(Select sel,
ClassMapping mapping)
Select the data for this indicator.
|
void |
setVersion(Version owner)
Set the version that uses this strategy.
|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, updateprotected Version vers
public void setVersion(Version owner)
VersionStrategysetVersion in interface VersionStrategypublic boolean select(Select sel, ClassMapping mapping)
VersionStrategyselect in interface VersionStrategymapping - the known base class being selected; this may
not be the base class in the inheritance hierarchypublic Object load(OpenJPAStateManager sm, JDBCStore store, Result res) throws SQLException
VersionStrategyload in interface VersionStrategySQLExceptionpublic Object load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins) throws SQLException
VersionStrategyload in interface VersionStrategySQLExceptionpublic void afterLoad(OpenJPAStateManager sm, JDBCStore store)
VersionStrategyafterLoad in interface VersionStrategypublic boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException
VersionStrategycheckVersion in interface VersionStrategySQLExceptionpublic int compareVersion(Object v1, Object v2)
compareVersion in interface VersionStrategyStoreManager.compareVersion(org.apache.openjpa.kernel.OpenJPAStateManager, java.lang.Object, java.lang.Object)public Map getBulkUpdateValues()
getBulkUpdateValues in interface VersionStrategyCopyright © 2006–2022 Apache Software Foundation. All rights reserved.