|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.objectwave.persist.broker.GlobalSequence
Use a sequence called GLOBAL_UID_SEQ to generate primary key values.
| Field Summary | |
protected int |
currentPkey
|
protected int |
pkeyPool
|
| Constructor Summary | |
GlobalSequence()
Constructor for the GlobalSequence object |
|
| Method Summary | |
java.lang.String |
getSequenceColumnName()
|
java.lang.String |
getSequenceTableName()
When using Oracle, the default of DUAL works just fine - this may be true with other databases, but I have no idea. |
java.lang.Object |
nextPrimaryKey(RDBBroker broker,
RDBPersistence pObj)
Calls to this method should never return the same value. |
void |
setSequenceColumnName(java.lang.String aValue)
When using oracle, the default sequence will be just fine, but you may have reasons of your own to change it. |
void |
setSequenceTableName(java.lang.String aValue)
When using Oracle, the default of DUAL works just fine - this may be true with other databases, but I have no idea. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int pkeyPool
protected int currentPkey
| Constructor Detail |
public GlobalSequence()
| Method Detail |
public void setSequenceTableName(java.lang.String aValue)
aValue - The new SequenceTableName valuepublic void setSequenceColumnName(java.lang.String aValue)
aValue - The new SequenceColumnName valuepublic java.lang.String getSequenceTableName()
public java.lang.String getSequenceColumnName()
public java.lang.Object nextPrimaryKey(RDBBroker broker,
RDBPersistence pObj)
throws java.sql.SQLException,
QueryException
PrimaryKeyStrategy
nextPrimaryKey in interface PrimaryKeyStrategybroker - pObj -
java.sql.SQLException
QueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||