public interface VersionStrategy extends Strategy
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<Column,? extends Object> |
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, update
void setVersion(Version owner)
boolean select(Select sel, ClassMapping mapping)
mapping
- the known base class being selected; this may
not be the base class in the inheritance hierarchyObject load(OpenJPAStateManager sm, JDBCStore store, Result res) throws SQLException
SQLException
Object load(OpenJPAStateManager sm, JDBCStore store, Result res, Joins joins) throws SQLException
SQLException
void afterLoad(OpenJPAStateManager sm, JDBCStore store)
boolean checkVersion(OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws SQLException
SQLException
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.