| org.jpox.store.poid.PoidGenerator
All known Subclasses: org.jpox.store.poid.AbstractPoidGenerator,
PoidGenerator | public interface PoidGenerator (Code) | | Generator interface for POIDs.
Uses the same methods as in the javax.jdo.datastore.Sequence interface
version: $Revision: 1.4 $ |
Method Summary | |
void | allocate(int additional) Provides a hint to the implementation that the application
will need additional sequence value objects in
short order. | Object | current() Returns the current sequence value object if it is available. | long | currentValue() Returns the current sequence value as a long. | String | getName() Returns the fully qualified name of the Sequence . | Object | next() Returns the next sequence value as an Object. | long | nextValue() Returns the next sequence value as a long. |
allocate | void allocate(int additional)(Code) | | Provides a hint to the implementation that the application
will need additional sequence value objects in
short order. There is no externally visible behavior of this
method. It is used to potentially improve the efficiency of
the algorithm of obtaining additional sequence value objects.
Parameters: additional - the number of additional values to allocate |
current | Object current()(Code) | | Returns the current sequence value object if it is available.
It is intended to return a sequence value object previously used.
If the current sequence value is not available, throw JPOXDataStoreException.
the current value |
currentValue | long currentValue()(Code) | | Returns the current sequence value as a long.
If the current sequence value is not available or is not numeric, throw JPOXDataStoreException.
the current value |
getName | String getName()(Code) | | Returns the fully qualified name of the Sequence .
the name of the sequence |
next | Object next()(Code) | | Returns the next sequence value as an Object. If the next
sequence value is not available, throw JPOXDataStoreException.
the next value |
nextValue | long nextValue()(Code) | | Returns the next sequence value as a long.
If the next sequence value is not available or is not numeric, throw JPOXDataStoreException.
the next value |
|
|