|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
public abstract class AbstractVersionStrategy
No-op strategy for easy extension.
Field Summary | |
---|---|
protected Version |
vers
The owning version. |
Constructor Summary | |
---|---|
AbstractVersionStrategy()
|
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)
|
java.util.Map |
getBulkUpdateValues()
|
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 class org.apache.openjpa.jdbc.meta.strats.AbstractStrategy |
---|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.jdbc.meta.Strategy |
---|
customDelete, customInsert, customUpdate, delete, getAlias, initialize, insert, isCustomDelete, isCustomInsert, isCustomUpdate, map, update |
Field Detail |
---|
protected Version vers
Constructor Detail |
---|
public AbstractVersionStrategy()
Method Detail |
---|
public void setVersion(Version owner)
VersionStrategy
setVersion
in interface VersionStrategy
public boolean select(Select sel, ClassMapping mapping)
VersionStrategy
select
in interface VersionStrategy
mapping
- the known base class being selected; this may
not be the base class in the inheritance hierarchy
public void load(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store, Result res) throws java.sql.SQLException
VersionStrategy
load
in interface VersionStrategy
java.sql.SQLException
public void afterLoad(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store)
VersionStrategy
afterLoad
in interface VersionStrategy
public boolean checkVersion(org.apache.openjpa.kernel.OpenJPAStateManager sm, JDBCStore store, boolean updateVersion) throws java.sql.SQLException
VersionStrategy
checkVersion
in interface VersionStrategy
java.sql.SQLException
public int compareVersion(java.lang.Object v1, java.lang.Object v2)
compareVersion
in interface VersionStrategy
StoreManager.compareVersion(org.apache.openjpa.kernel.OpenJPAStateManager, java.lang.Object, java.lang.Object)
public java.util.Map getBulkUpdateValues()
getBulkUpdateValues
in interface VersionStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |