| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.jdbc.kernel.AbstractJDBCSeq
org.apache.openjpa.jdbc.kernel.TableJDBCSeq
org.apache.openjpa.jdbc.kernel.ValueTableJDBCSeq
public class ValueTableJDBCSeq
Specialization of the TableJDBCSeq that maintains multiple
 sequence counts. Each instance of this class represents one row with
 a known string primary key value, more or less. The table name defaults
 to OPENJPA_SEQUENCES_TABLE.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.kernel.TableJDBCSeq | 
|---|
| TableJDBCSeq.AllocateSequenceRunnable, TableJDBCSeq.CurrentSequenceRunnable, TableJDBCSeq.Status | 
| Field Summary | |
|---|---|
| static String | PK_VALUE | 
| Fields inherited from class org.apache.openjpa.jdbc.kernel.TableJDBCSeq | 
|---|
| ACTION_ADD, ACTION_DROP, ACTION_GET, ACTION_SET, DEFAULT_TABLE | 
| Fields inherited from class org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq | 
|---|
| current, type | 
| Fields inherited from interface org.apache.openjpa.kernel.Seq | 
|---|
| TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL | 
| Constructor Summary | |
|---|---|
| ValueTableJDBCSeq() | |
| Method Summary | |
|---|---|
| protected  Column | addPrimaryKeyColumn(Table table)Add the primary key column to the given table and return it. | 
| protected  Object | getPrimaryKey(ClassMapping mapping)Return the primary key value for the sequence table for the given class. | 
|  String | getPrimaryKeyValue()The primary key value for this row. | 
| static void | main(String[] args)Usage: java org.apache.openjpa.jdbc.kernel.ValueTableJDBCSeq [option]* -action/-a <add | drop | get | set> [primary key value] [value] Where the following options are recognized. | 
| static boolean | run(JDBCConfiguration conf,
    String[] args,
    Options opts)Run the tool. | 
| static boolean | run(JDBCConfiguration conf,
    String[] args,
    String action,
    MappingRepository repos,
    ClassLoader loader)Run the tool. | 
|  void | setPrimaryKeyValue(String value)The primary key value for this row. | 
| Methods inherited from class org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq | 
|---|
| allocate, close, closeConnection, current, getConnection, next, setType, suspendInJTA | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String PK_VALUE
| Constructor Detail | 
|---|
public ValueTableJDBCSeq()
| Method Detail | 
|---|
public String getPrimaryKeyValue()
DEFAULT.
public void setPrimaryKeyValue(String value)
DEFAULT.
protected Column addPrimaryKeyColumn(Table table)
TableJDBCSeq
addPrimaryKeyColumn in class TableJDBCSeqprotected Object getPrimaryKey(ClassMapping mapping)
TableJDBCSeq
getPrimaryKey in class TableJDBCSeq
public static void main(String[] args)
                 throws Exception
JDBCConfiguration. Optional.JDBCConfiguration can be set by
 using their    names and supplying a value. For example:
 -licenseKey adslfja83r3lkadf
Exception
public static boolean run(JDBCConfiguration conf,
                          String[] args,
                          Options opts)
                   throws Exception
Exception
public static boolean run(JDBCConfiguration conf,
                          String[] args,
                          String action,
                          MappingRepository repos,
                          ClassLoader loader)
                   throws Exception
Exception| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||