|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| 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()
Drops the sequence table in the DB. |
int |
getIncrement()
Return the increment to us when updating the sequence table. |
long |
getNext(Class cls)
Return a unique primary key value for the given class. |
static void |
main(String[] args)
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory [option]* -action <add | drop | increment> |
void |
setConfiguration(JDBCConfiguration conf)
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. |
| 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 int getIncrement()
public void setIncrement(int inc)
public void setConfiguration(JDBCConfiguration conf)
SequenceFactorysetConfiguration in interface SequenceFactory
public long getNext(Class cls)
throws SQLException
SequenceFactorygetNext in interface SequenceFactory
public void dropTable()
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;
optionalfalsesystem.prefs, the name of the database to access;
optionalJDBCConfiguration can be set by using their
names and supplying a value; for example:
-licenseKey adslfja83r3lkadfIf the license key is not specified otherwise, Kodo will check for
default preference files with license keys as outlined in
DefaultConfiguration.
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||