|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.triactive.jdo.store.OIDGenerator
Generates OIDs for a single class of objects.
| Field Summary | |
protected short |
classId
The class ID of OIDs to generate. |
protected int |
nextHiValue
The hi value of the next OID to be returned. |
protected short |
nextLoValue
The lo value of the next OID to be returned. |
| Constructor Summary | |
OIDGenerator(int classId)
Constructs a new OID generator. |
|
| Method Summary | |
OID |
maximum()
Returns the highest possible OID value for the class of OIDs returned by this generator. |
OID |
minimum()
Returns the lowest possible OID value for the class of OIDs returned by this generator. |
abstract OID |
next(StoreManager storeMgr)
Generates the next unique OID value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final short classId
protected int nextHiValue
protected short nextLoValue
| Constructor Detail |
public OIDGenerator(int classId)
classId - the class ID of OIDs to generate.| Method Detail |
public final OID minimum()
public final OID maximum()
public abstract OID next(StoreManager storeMgr)
throws OIDOverflowException
storeMgr - the store manager to use for accessing datastore-based sequence(s),
if necessary.
OIDOverflowException - if the generator can produce no more values
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||