Package org.apache.openjpa.kernel
Class TimeSeededSeq
- java.lang.Object
-
- org.apache.openjpa.kernel.TimeSeededSeq
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.kernel.Seq
TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL
-
-
Constructor Summary
Constructors Constructor Description TimeSeededSeq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(int additional, StoreContext ctx, ClassMetaData meta)Allocate additional values efficiently.voidclose()Free resources used by this sequence.Objectcurrent(StoreContext ctx, ClassMetaData meta)Return the current value of the sequence, or null if not available.intgetIncrement()Objectnext(StoreContext ctx, ClassMetaData meta)Return the next value in the sequence.voidsetIncrement(int increment)voidsetType(int type)Set the type of sequence.
-
-
-
Method Detail
-
setType
public void setType(int type)
Description copied from interface:SeqSet the type of sequence.
-
getIncrement
public int getIncrement()
-
setIncrement
public void setIncrement(int increment)
-
next
public Object next(StoreContext ctx, ClassMetaData meta)
Description copied from interface:SeqReturn the next value in the sequence.
-
current
public Object current(StoreContext ctx, ClassMetaData meta)
Description copied from interface:SeqReturn the current value of the sequence, or null if not available.
-
allocate
public void allocate(int additional, StoreContext ctx, ClassMetaData meta)Description copied from interface:SeqAllocate additional values efficiently.
-
-