|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jdo.JDOSequenceImpl
public class JDOSequenceImpl
Basic generic implementation of a JDO2 datastore sequence for DB4O datastores. Utilises the "org.datanucleus.store_valuegenerator" extensions.
| Field Summary | |
|---|---|
protected ValueGenerator |
generator
The generator for the sequence. |
protected static Localiser |
LOCALISER
Localisation of messages |
protected ObjectManager |
om
The controlling Object Manager. |
protected SequenceMetaData |
seqMetaData
Name of the sequence. |
protected StoreManager |
storeManager
Store Manager where we obtain our sequence. |
| Constructor Summary | |
|---|---|
JDOSequenceImpl(ObjectManager 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. |
| 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 final ValueGenerator generator
protected final ObjectManager om
| Constructor Detail |
|---|
public JDOSequenceImpl(ObjectManager 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 |
|---|
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 | |||||||||