|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.JDOSequence
public class JDOSequence
Basic generic implementation of a JDO2 datastore sequence. Wraps a NucleusSequence.
| Field Summary | |
|---|---|
protected NucleusSequence |
sequence
Underlying NucleusSequence. |
| Constructor Summary | |
|---|---|
JDOSequence(NucleusSequence seq)
Constructor. |
|
| Method Summary | |
|---|---|
void |
allocate(int additional)
Method to allocate a set of elements. |
java.lang.Object |
current()
Accessor for the current element. |
long |
currentValue()
Accessor for the current element in the sequence as a long. |
java.lang.String |
getName()
Accessor for the sequence name. |
java.lang.Object |
next()
Accessor for the next element in the sequence. |
long |
nextValue()
Accessor for the next element in the sequence as a long. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NucleusSequence sequence
| Constructor Detail |
|---|
public JDOSequence(NucleusSequence seq)
seq - Underlying sequence| Method Detail |
|---|
public java.lang.String getName()
getName in interface javax.jdo.datastore.SequencegetName in interface NucleusSequencepublic void allocate(int additional)
allocate in interface javax.jdo.datastore.Sequenceallocate in interface NucleusSequenceadditional - The number of additional elements to allocatepublic java.lang.Object next()
next in interface javax.jdo.datastore.Sequencenext in interface NucleusSequencepublic long nextValue()
nextValue in interface javax.jdo.datastore.SequencenextValue in interface NucleusSequencejavax.jdo.JDODataStoreException - Thrown if not numericpublic java.lang.Object current()
current in interface javax.jdo.datastore.Sequencecurrent in interface NucleusSequencepublic long currentValue()
currentValue in interface javax.jdo.datastore.SequencecurrentValue in interface NucleusSequencejavax.jdo.JDODataStoreException - Thrown if not numeric
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||