|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.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.
| Field Summary | |
static java.lang.String |
ACTION_ADD
|
static java.lang.String |
ACTION_DROP
|
static java.lang.String |
ACTION_INCREMENT
|
| 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(java.lang.Class cls,
java.lang.String user,
java.lang.String pass)
Return a unique primary key value. |
static void |
main(java.lang.String[] args)
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory [option]* -action/-a <add | drop | increment> |
void |
refreshTable(java.lang.String user,
java.lang.String pass)
Creates the sequence table in the DB. |
static boolean |
run(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf,
java.lang.String action,
java.io.Writer out)
Run the tool. |
void |
setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.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 |
| Field Detail |
public static final java.lang.String ACTION_DROP
public static final java.lang.String ACTION_ADD
public static final java.lang.String ACTION_INCREMENT
| Constructor Detail |
public DBSequenceFactory()
| Method Detail |
public int getIncrement()
public void setIncrement(int inc)
public void setConfiguration(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
SequenceFactory
setConfiguration in interface SequenceFactory
public long getNext(java.lang.Class cls,
java.lang.String user,
java.lang.String pass)
SequenceFactory
getNext in interface SequenceFactorycls - the class of the object being persisteduser - the authentication information for connecting to the
databasepass - the authentication information for connecting to the
database
public void refreshTable(java.lang.String user,
java.lang.String pass)
throws java.sql.SQLException
java.sql.SQLException
public void dropTable()
throws java.sql.SQLException
java.sql.SQLException
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.sql.SQLException
Usage: java com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory [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 adslfja83r3lkadfThe various actions are as follows.
java.io.IOException
java.sql.SQLException
public static boolean run(com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf,
java.lang.String action,
java.io.Writer out)
throws java.io.IOException,
java.sql.SQLException
java.io.IOException
java.sql.SQLException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||