|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| 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.AbstractSequenceFactory
|
+--com.solarmetric.kodo.impl.jdbc.schema.TrueSequenceFactory
SequenceFactory implementation that uses a singular
database sequence to generate numbers. Named true as it attempts to
use native database id generation.
Note this will NOT work on databases that do not
support sequences.
Designed as an example for subclassing / re-implementation.
Only tested on Oracle. Other databases may require
subclassing or re-implementation using this class
as a basis.
SequenceFactory,
DBDictionaryFactory, Serialized Form| Constructor Summary | |
TrueSequenceFactory()
|
|
| Method Summary | |
String |
getFormat()
Return the MessageFormat String to use for SQL generation |
long |
getNext(Class cls,
Connector connector)
Gets the next id by pulling the next value from the sequence |
String |
getSequenceName()
Return the name of the sequence used |
String |
getTableName()
Return the table name to run sequence queries against. |
void |
setFormat(String messageFormat)
Set the String used for MessageFormat to generate the sequence selecting SQL. |
void |
setSequenceName(String seqName)
Set the sequence used. |
void |
setTableName(String name)
Set the table name to run sequence queries against. |
| Methods inherited from class com.solarmetric.kodo.impl.jdbc.schema.AbstractSequenceFactory |
getConfiguration, getDictionary, setConfiguration, setConfiguration, setDictionary |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public TrueSequenceFactory()
| Method Detail |
public String getTableName()
public void setTableName(String name)
name - the name of the tablepublic String getFormat()
public void setFormat(String messageFormat)
public String getSequenceName()
public void setSequenceName(String seqName)
public long getNext(Class cls,
Connector connector)
throws SQLException
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||