Package org.apache.openjpa.kernel
Class UUIDHexSeq
- java.lang.Object
-
- org.apache.openjpa.kernel.UUIDHexSeq
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.kernel.Seq
TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
allocate(int additional, StoreContext ctx, ClassMetaData meta)
Allocate additional values efficiently.void
close()
Free resources used by this sequence.java.lang.Object
current(StoreContext ctx, ClassMetaData meta)
Return the current value of the sequence, or null if not available.static UUIDHexSeq
getInstance()
Return the singleton instance.java.lang.Object
next(StoreContext ctx, ClassMetaData meta)
Return the next value in the sequence.void
setType(int type)
Set the type of sequence.
-
-
-
Method Detail
-
getInstance
public static UUIDHexSeq getInstance()
Return the singleton instance.
-
setType
public void setType(int type)
Description copied from interface:Seq
Set the type of sequence.
-
next
public java.lang.Object next(StoreContext ctx, ClassMetaData meta)
Description copied from interface:Seq
Return the next value in the sequence.
-
current
public java.lang.Object current(StoreContext ctx, ClassMetaData meta)
Description copied from interface:Seq
Return 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:Seq
Allocate additional values efficiently.
-
-