org.apache.openjpa.kernel
TYPE_CONTIGUOUS, TYPE_DEFAULT, TYPE_NONTRANSACTIONAL, TYPE_TRANSACTIONAL
Constructor and Description |
---|
DelegatingSeq(Seq seq)
Constructor; supply delegate.
|
DelegatingSeq(Seq seq,
RuntimeExceptionTranslator trans)
Constructor; supply delegate and exception translator.
|
Modifier and Type | Method and 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.
|
boolean |
equals(java.lang.Object other) |
Seq |
getDelegate()
Return the direct delegate.
|
Seq |
getInnermostDelegate()
Return the native delegate.
|
int |
hashCode() |
java.lang.Object |
next(StoreContext ctx,
ClassMetaData meta)
Return the next value in the sequence.
|
void |
setType(int type)
Set the type of sequence.
|
protected java.lang.RuntimeException |
translate(java.lang.RuntimeException re)
Translate the OpenJPA exception.
|
public DelegatingSeq(Seq seq)
public DelegatingSeq(Seq seq, RuntimeExceptionTranslator trans)
public Seq getDelegate()
public Seq getInnermostDelegate()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
protected java.lang.RuntimeException translate(java.lang.RuntimeException re)
public void setType(int type)
Seq
public java.lang.Object next(StoreContext ctx, ClassMetaData meta)
Seq
public java.lang.Object current(StoreContext ctx, ClassMetaData meta)
Seq
public void allocate(int additional, StoreContext ctx, ClassMetaData meta)
Seq