|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
SequenceFactory
implementation that uses a database table
for sequence number generation. The table is automatically created
if not already present.
Constructor Summary | |
---|---|
DBSequenceFactory()
|
Method Summary | |
---|---|
void |
dropTable(SQLExecutionManager manager)
Drops the sequence table in the DB. |
int |
getIncrement()
Return the increment to us when updating the sequence table. |
long |
getNext(Class cls,
Connector connector)
Return a unique primary key value for the given class. |
String |
getTableName()
Return the table name to use to store sequence ids. |
static void |
main(String[] args)
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory [option]* -action <add | drop | increment> |
void |
setConfiguration(JDBCConfiguration conf,
DBDictionary dict)
Set the configuration for this factory; allows access to database connection information, etc. |
void |
setIncrement(int inc)
Set the increment to use when updating the sequence table. |
void |
setTableName(String name)
Set the table name for storing sequence ids. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBSequenceFactory()
Method Detail |
public String getTableName()
public void setTableName(String name)
DBDictionary
public int getIncrement()
public void setIncrement(int inc)
public void setConfiguration(JDBCConfiguration conf, DBDictionary dict)
SequenceFactory
setConfiguration
in interface SequenceFactory
public long getNext(Class cls, Connector connector) throws SQLException
SequenceFactory
getNext
in interface SequenceFactory
public void dropTable(SQLExecutionManager manager) throws SQLException
public static void main(String[] args) throws SQLException
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory [option]* -action <add | drop | increment>
Where the following options are recognized.
Configuration
;
optionalfalse
JDBCConfiguration
can be set by using their
names and supplying a value; for example:
-licenseKey adslfja83r3lkadf
If the license key is not specified otherwise, Kodo will check for
default preference files with license keys as outlined in
DefaultConfiguration
.
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |