|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.db4o.valuegenerator.NucleusSequence
public class NucleusSequence
Representation of a sequence for either a class or field. Object is stored in DB4O storing the class/field name and the current sequence value. Works in a similar way to SequenceTable for RDBMS in that an object is persisted for which class or field that needs sequence values and when a new one is required the object is retrieved and the sequence value updated.
| Constructor Summary | |
|---|---|
NucleusSequence(java.lang.String entity)
Constructor. |
|
| Method Summary | |
|---|---|
long |
getCurrentValue()
Accessor for the current value. |
java.lang.String |
getEntityName()
Accessor for the entity name |
void |
incrementCurrentValue(long increment)
Method to update the current value. |
void |
setCurrentValue(long value)
Mutator for current value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NucleusSequence(java.lang.String entity)
entity - The class/field name that the sequence value is for| Method Detail |
|---|
public long getCurrentValue()
public java.lang.String getEntityName()
public void setCurrentValue(long value)
value - The current value for this sequence.public void incrementCurrentValue(long increment)
increment - The amount to increment by (must be positive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||