kodo.jdbc.meta.strats
Class ColumnPerLockGroupVersionStrategy
java.lang.Object
   org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractStrategy
       org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
org.apache.openjpa.jdbc.meta.strats.AbstractVersionStrategy
           kodo.jdbc.meta.strats.ColumnPerLockGroupVersionStrategy
kodo.jdbc.meta.strats.ColumnPerLockGroupVersionStrategy
- All Implemented Interfaces: 
- Serializable, Strategy, VersionStrategy
- Direct Known Subclasses: 
- LockGroupNumberVersionStrategy, LockGroupTimestampVersionStrategy
- public abstract class ColumnPerLockGroupVersionStrategy 
- extends AbstractVersionStrategy
Uses a column and corresponding version object for each lock group.
- See Also:
- Serialized Form
 
 
 
| Method Summary | 
|  boolean | checkVersion(OpenJPAStateManager sm,
             JDBCStore store,
             boolean updateVersion)
 | 
| protected  int | compare(Object v1,
        Object v2)Compare the two versions.
 | 
|  int | compareVersion(Object v1,
               Object v2)
 | 
|  void | delete(OpenJPAStateManager sm,
       JDBCStore store,
       RowManager rm)
 | 
| protected abstract  int | getJavaType()Return the code from
 JavaTypesfor the version values this
 strategy uses. | 
|  void | insert(OpenJPAStateManager sm,
       JDBCStore store,
       RowManager rm)
 | 
|  void | load(OpenJPAStateManager sm,
     JDBCStore store,
     Result res)
 | 
|  void | map(boolean adapt)
 | 
| protected abstract  Object | nextVersion(Object version)Return the next version given the current one, which may be null.
 | 
|  boolean | select(Select sel,
       ClassMapping mapping)
 | 
|  void | update(OpenJPAStateManager sm,
       JDBCStore store,
       RowManager rm)
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
ColumnPerLockGroupVersionStrategy
public ColumnPerLockGroupVersionStrategy()
getJavaType
protected abstract int getJavaType()
- Return the code from JavaTypesfor the version values this
 strategy uses.  This method is only used during mapping installation.
 
- 
 
nextVersion
protected abstract Object nextVersion(Object version)
- Return the next version given the current one, which may be null.
 
- 
 
compare
protected int compare(Object v1,
                      Object v2)
- Compare the two versions.  Defaults to assuming the version objects
 implement Comparable.
 
- 
- See Also:
- Comparator.compare(T, T)
 
map
public void map(boolean adapt)
- 
- Specified by:
- mapin interface- Strategy
- Overrides:
- mapin class- AbstractStrategy
 
- 
 
insert
public void insert(OpenJPAStateManager sm,
                   JDBCStore store,
                   RowManager rm)
            throws SQLException
- 
- Specified by:
- insertin interface- Strategy
- Overrides:
- insertin class- AbstractStrategy
 
- 
- Throws:
- SQLException
 
update
public void update(OpenJPAStateManager sm,
                   JDBCStore store,
                   RowManager rm)
            throws SQLException
- 
- Specified by:
- updatein interface- Strategy
- Overrides:
- updatein class- AbstractStrategy
 
- 
- Throws:
- SQLException
 
delete
public void delete(OpenJPAStateManager sm,
                   JDBCStore store,
                   RowManager rm)
            throws SQLException
- 
- Specified by:
- deletein interface- Strategy
- Overrides:
- deletein class- AbstractStrategy
 
- 
- Throws:
- SQLException
 
select
public boolean select(Select sel,
                      ClassMapping mapping)
- 
- Specified by:
- selectin interface- VersionStrategy
- Overrides:
- selectin class- AbstractVersionStrategy
 
- 
 
load
public void load(OpenJPAStateManager sm,
                 JDBCStore store,
                 Result res)
          throws SQLException
- 
- Specified by:
- loadin interface- VersionStrategy
- Overrides:
- loadin class- AbstractVersionStrategy
 
- 
- Throws:
- SQLException
 
checkVersion
public boolean checkVersion(OpenJPAStateManager sm,
                            JDBCStore store,
                            boolean updateVersion)
                     throws SQLException
- 
- Specified by:
- checkVersionin interface- VersionStrategy
- Overrides:
- checkVersionin class- AbstractVersionStrategy
 
- 
- Throws:
- SQLException
 
compareVersion
public int compareVersion(Object v1,
                          Object v2)
- 
- Specified by:
- compareVersionin interface- VersionStrategy
- Overrides:
- compareVersionin class- AbstractVersionStrategy
 
- 
 
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.