|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionStrategy
Handles optimistic lock versioning for a class.
Method Summary | |
---|---|
void |
afterLoad(org.apache.openjpa.kernel.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(org.apache.openjpa.kernel.OpenJPAStateManager sm,
JDBCStore store,
boolean updateVersion)
Checks the version of the given state manager with the version stored in memory. |
int |
compareVersion(java.lang.Object v1,
java.lang.Object v2)
|
void |
load(org.apache.openjpa.kernel.OpenJPAStateManager sm,
JDBCStore store,
Result res)
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. |
Methods inherited from interface org.apache.openjpa.jdbc.meta.Strategy |
---|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update |
Method Detail |
---|
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 hierarchy
void load(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store, Result res) throws java.sql.SQLException
java.sql.SQLException
void afterLoad(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store)
boolean checkVersion(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws java.sql.SQLException
java.sql.SQLException
int compareVersion(java.lang.Object v1, java.lang.Object v2)
StoreManager.compareVersion(org.apache.openjpa.kernel.OpenJPAStateManager, java.lang.Object, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |