public class JDOSequence extends Object implements javax.jdo.datastore.Sequence, org.datanucleus.store.NucleusSequence
Modifier and Type | Field and Description |
---|---|
protected org.datanucleus.store.NucleusSequence |
sequence
Underlying NucleusSequence.
|
Constructor and Description |
---|
JDOSequence(org.datanucleus.store.NucleusSequence seq)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
allocate(int additional)
Method to allocate a set of elements.
|
Object |
current()
Accessor for the current element.
|
long |
currentValue()
Accessor for the current element in the sequence as a long.
|
String |
getName()
Accessor for the sequence name.
|
Object |
next()
Accessor for the next element in the sequence.
|
long |
nextValue()
Accessor for the next element in the sequence as a long.
|
protected org.datanucleus.store.NucleusSequence sequence
public JDOSequence(org.datanucleus.store.NucleusSequence seq)
seq
- Underlying sequencepublic String getName()
getName
in interface javax.jdo.datastore.Sequence
getName
in interface org.datanucleus.store.NucleusSequence
public void allocate(int additional)
allocate
in interface javax.jdo.datastore.Sequence
allocate
in interface org.datanucleus.store.NucleusSequence
additional
- The number of additional elements to allocatepublic Object next()
next
in interface javax.jdo.datastore.Sequence
next
in interface org.datanucleus.store.NucleusSequence
public long nextValue()
nextValue
in interface javax.jdo.datastore.Sequence
nextValue
in interface org.datanucleus.store.NucleusSequence
javax.jdo.JDODataStoreException
- Thrown if not numericpublic Object current()
current
in interface javax.jdo.datastore.Sequence
current
in interface org.datanucleus.store.NucleusSequence
public long currentValue()
currentValue
in interface javax.jdo.datastore.Sequence
currentValue
in interface org.datanucleus.store.NucleusSequence
javax.jdo.JDODataStoreException
- Thrown if not numericCopyright © 2020. All rights reserved.