Package org.apache.openjpa.kernel
Class UUIDHexSeq
java.lang.Object
org.apache.openjpa.kernel.UUIDHexSeq
Sequence for generating 32-character hex UUID strings.
- Author:
- Abe White
-
Field Summary
Fields inherited from interface org.apache.openjpa.kernel.Seq
TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL -
Method Summary
Modifier and TypeMethodDescriptionvoidallocate(int additional, StoreContext ctx, ClassMetaData meta) Allocate additional values efficiently.voidclose()Free resources used by this sequence.current(StoreContext ctx, ClassMetaData meta) Return the current value of the sequence, or null if not available.static UUIDHexSeqReturn the singleton instance.next(StoreContext ctx, ClassMetaData meta) Return the next value in the sequence.voidsetType(int type) Set the type of sequence.
-
Method Details
-
getInstance
Return the singleton instance. -
setType
public void setType(int type) Description copied from interface:SeqSet the type of sequence. -
next
Description copied from interface:SeqReturn the next value in the sequence. -
current
Description copied from interface:SeqReturn the current value of the sequence, or null if not available. -
allocate
Description copied from interface:SeqAllocate additional values efficiently. -
close
public void close()Description copied from interface:SeqFree resources used by this sequence.
-