|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.NucleusSequenceImpl
public class NucleusSequenceImpl
Basic generic implementation of a datastore sequence. Utilises the "org.datanucleus.store_valuegenerator" extensions.
| Field Summary | |
|---|---|
protected ExecutionContext |
ec
execution context. |
protected ValueGenerator |
generator
The generator for the sequence. |
protected static Localiser |
LOCALISER
Localisation of messages |
protected SequenceMetaData |
seqMetaData
Name of the sequence. |
protected StoreManager |
storeManager
Store Manager where we obtain our sequence. |
| Constructor Summary | |
|---|---|
NucleusSequenceImpl(ExecutionContext objectMgr,
StoreManager storeMgr,
SequenceMetaData seqmd)
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. |
protected void |
setGenerator()
Method to set the value generator to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected final StoreManager storeManager
protected final SequenceMetaData seqMetaData
protected ValueGenerator generator
protected final ExecutionContext ec
| Constructor Detail |
|---|
public NucleusSequenceImpl(ExecutionContext objectMgr,
StoreManager storeMgr,
SequenceMetaData seqmd)
objectMgr - The Object Manager managing the sequencestoreMgr - Manager of the store where we obtain the sequenceseqmd - MetaData defining the sequence| Method Detail |
|---|
protected void setGenerator()
public java.lang.String getName()
getName in interface NucleusSequencepublic void allocate(int additional)
allocate in interface NucleusSequenceadditional - The number of additional elements to allocatepublic java.lang.Object next()
next in interface NucleusSequencepublic long nextValue()
nextValue in interface NucleusSequencepublic java.lang.Object current()
current in interface NucleusSequencepublic long currentValue()
currentValue in interface NucleusSequence
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||