|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.schema.DBSequenceFactory | +--kodo.jdbc.schema.ClassDBSequenceFactory
Specialization of the DBSequenceFactory
that maintains a
separate sequence count per-class.
Inner classes inherited from class kodo.jdbc.schema.DBSequenceFactory |
DBSequenceFactory.Seq |
Fields inherited from class kodo.jdbc.schema.DBSequenceFactory |
ACTION_ADD, ACTION_DROP, ACTION_INCREMENT |
Constructor Summary | |
ClassDBSequenceFactory()
|
Method Summary | |
protected Column |
addPrimaryKeyColumn(Table table)
Add the primary key column to the given table and return it. |
boolean |
getIgnoreVirtual()
Returns true if virtually mapped (i.e. |
protected Object |
getPrimaryKey(ClassMapping mapping)
Return the primary key value for the given mapping. |
protected DBSequenceFactory.Seq |
getSeq(ClassMapping mapping)
Return the appropriate sequence info object for the given mapping. |
static void |
main(String[] args)
Usage: java kodo.jdbc.schema.ClassDBSequenceFactory [option]* -action/-a <add | drop | increment> |
static boolean |
run(JDBCConfiguration conf,
String[] args,
serp.util.Options opts)
Run the tool. |
static boolean |
run(JDBCConfiguration conf,
String action,
Writer out)
Run the tool. |
void |
setIgnoreVirtual(boolean ignore)
Set to true if virtually mapped (i.e. |
Methods inherited from class kodo.jdbc.schema.DBSequenceFactory |
addSchema, dropTable, endConfiguration, ensureCapacity, getConfiguration, getConnection, getIncrement, getNext, getNext, getNext, getPrimaryKeyColumn, getSequenceColumn, getTableName, refreshTable, setConfiguration, setIncrement, setPrimaryKeyColumn, setSequenceColumn, setTableName, startConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassDBSequenceFactory()
Method Detail |
public boolean getIgnoreVirtual()
public void setIgnoreVirtual(boolean ignore)
protected DBSequenceFactory.Seq getSeq(ClassMapping mapping)
DBSequenceFactory
getSeq
in class DBSequenceFactory
protected Column addPrimaryKeyColumn(Table table)
DBSequenceFactory
addPrimaryKeyColumn
in class DBSequenceFactory
protected Object getPrimaryKey(ClassMapping mapping)
DBSequenceFactory
getPrimaryKey
in class DBSequenceFactory
public static void main(String[] args) throws Exception
Usage: java kodo.jdbc.schema.ClassDBSequenceFactory [option]* -action/-a <add | drop | increment>
Where the following options are recognized.
JDBCConfiguration
. Optional.JDBCConfiguration
can be set by
using their names and supplying a value. For example:
-licenseKey adslfja83r3lkadf
The various actions are as follows.
public static boolean run(JDBCConfiguration conf, String[] args, serp.util.Options opts) throws Exception
public static boolean run(JDBCConfiguration conf, String action, Writer out) throws Exception
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |