Package org.apache.openjpa.kernel
Class DelegatingSeq
- java.lang.Object
-
- org.apache.openjpa.kernel.DelegatingSeq
-
-
Field Summary
-
Fields inherited from interface org.apache.openjpa.kernel.Seq
TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL
-
-
Constructor Summary
Constructors Constructor Description DelegatingSeq(Seq seq)Constructor; supply delegate.DelegatingSeq(Seq seq, RuntimeExceptionTranslator trans)Constructor; supply delegate and exception translator.
-
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.java.lang.Objectcurrent(StoreContext ctx, ClassMetaData meta)Return the current value of the sequence, or null if not available.booleanequals(java.lang.Object other)SeqgetDelegate()Return the direct delegate.SeqgetInnermostDelegate()Return the native delegate.inthashCode()java.lang.Objectnext(StoreContext ctx, ClassMetaData meta)Return the next value in the sequence.voidsetType(int type)Set the type of sequence.protected java.lang.RuntimeExceptiontranslate(java.lang.RuntimeException re)Translate the OpenJPA exception.
-
-
-
Constructor Detail
-
DelegatingSeq
public DelegatingSeq(Seq seq)
Constructor; supply delegate.
-
DelegatingSeq
public DelegatingSeq(Seq seq, RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.
-
-
Method Detail
-
getDelegate
public Seq getDelegate()
Return the direct delegate.
-
getInnermostDelegate
public Seq getInnermostDelegate()
Return the native delegate.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
translate
protected java.lang.RuntimeException translate(java.lang.RuntimeException re)
Translate the OpenJPA exception.
-
setType
public void setType(int type)
Description copied from interface:SeqSet the type of sequence.
-
next
public java.lang.Object next(StoreContext ctx, ClassMetaData meta)
Description copied from interface:SeqReturn the next value in the sequence.
-
current
public java.lang.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.
-
-