public class ValueTableJDBCSeq extends TableJDBCSeq
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.TableJDBCSeq.AllocateSequenceRunnable, TableJDBCSeq.CurrentSequenceRunnable, TableJDBCSeq.Status| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PK_VALUE |
ACTION_ADD, ACTION_DROP, ACTION_GET, ACTION_SET, DEFAULT_TABLEcurrent, typeTYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL| Constructor and Description |
|---|
ValueTableJDBCSeq() |
| Modifier and Type | Method and Description |
|---|---|
protected Column |
addPrimaryKeyColumn(Table table)
Add the primary key column to the given table and return it.
|
protected java.lang.Object |
getPrimaryKey(ClassMapping mapping)
Return the primary key value for the sequence table for the given class.
|
java.lang.String |
getPrimaryKeyValue()
The primary key value for this row.
|
static void |
main(java.lang.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,
java.lang.String[] args,
Options opts)
Run the tool.
|
static boolean |
run(JDBCConfiguration conf,
java.lang.String[] args,
java.lang.String action,
MappingRepository repos,
java.lang.ClassLoader loader)
Run the tool.
|
void |
setPrimaryKeyValue(java.lang.String value)
The primary key value for this row.
|
addSchema, allocateInternal, currentInternal, dropTable, endConfiguration, executeQuery, executeUpdate, getAllocate, getConfiguration, getInitialValue, getPrimaryKeyColumn, getPrimaryKeyColumnIdentifier, getSequence, getSequence, getSequenceColumn, getStatus, getTable, getUniqueColumns, getUniqueConstraintIdentifier, getUniqueConstraintName, nextInternal, prepareStatement, refreshTable, resolveTableIdentifier, resolveTableName, run, setAllocate, setConfiguration, setIncrement, setInitialValue, setPrimaryKeyColumn, setSequence, setSequenceColumn, setTable, setTableName, setUniqueColumns, setUniqueConstraintName, setUniqueConstraintName, startConfigurationallocate, close, closeConnection, current, getConnection, next, setType, suspendInJTApublic static final java.lang.String PK_VALUE
public java.lang.String getPrimaryKeyValue()
DEFAULT.public void setPrimaryKeyValue(java.lang.String value)
DEFAULT.protected Column addPrimaryKeyColumn(Table table)
TableJDBCSeqaddPrimaryKeyColumn in class TableJDBCSeqprotected java.lang.Object getPrimaryKey(ClassMapping mapping)
TableJDBCSeqgetPrimaryKey in class TableJDBCSeqpublic static void main(java.lang.String[] args)
throws java.lang.Exception
JDBCConfiguration. Optional.JDBCConfiguration can be set by
using their names and supplying a value. For example:
-licenseKey adslfja83r3lkadfjava.lang.Exceptionpublic static boolean run(JDBCConfiguration conf, java.lang.String[] args, Options opts) throws java.lang.Exception
java.lang.Exceptionpublic static boolean run(JDBCConfiguration conf, java.lang.String[] args, java.lang.String action, MappingRepository repos, java.lang.ClassLoader loader) throws java.lang.Exception
java.lang.ExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.