|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void |
allocate(int additional)
Provides a hint to the implementation that the application will need additional sequence value objects in
short order. |
java.lang.Object |
current()
Returns the current sequence value object if it is available. |
long |
currentValue()
Returns the current sequence value as a long. |
java.lang.String |
getName()
Returns the fully qualified name of the Sequence . |
java.lang.Object |
next()
Returns the next sequence value as an Object. |
long |
nextValue()
Returns the next sequence value as a long. |
Method Detail |
public java.lang.String getName()
Sequence
.
public java.lang.Object next()
public void allocate(int additional)
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.
additional
- the number of additional values to allocatepublic java.lang.Object current()
public long nextValue()
public long currentValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |