Sequence
Implementations of this interface can be used to obtain sequences. The behavior with regard to the transaction and rollover behavior are defined in the metadata.
- Since:
- JDO 2.0
Public Methods
void allocate(int additional)
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
- Since:
- JDO 2.0
Object current()
It is intended to return a sequence value object previously used. If the current sequence value is not available, throw JDODataStoreException.
- Return:
- the current value
- Since:
- JDO 2.0
long currentValue()
If the current sequence value is not available or is not numeric, throw JDODataStoreException.
- Return:
- the current value
- Since:
- JDO 2.0
String getName()
- Return:
- the name of the sequence
- Since:
- JDO 2.0
Object next()
If the next sequence value is not available, throw JDODataStoreException.
- Return:
- the next value
- Since:
- JDO 2.0
long nextValue()
If the next sequence value is not available or is not numeric, throw JDODataStoreException.
- Return:
- the next value
- Since:
- JDO 2.0