|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Seq
Internal OpenJPA sequence interface.
Field Summary | |
---|---|
static int |
TYPE_CONTIGUOUS
|
static int |
TYPE_DEFAULT
|
static int |
TYPE_NONTRANSACTIONAL
|
static int |
TYPE_TRANSACTIONAL
|
Method Summary | |
---|---|
void |
allocate(int additional,
StoreContext ctx,
ClassMetaData cls)
Allocate additional values efficiently. |
void |
close()
Free resources used by this sequence. |
Object |
current(StoreContext ctx,
ClassMetaData cls)
Return the current value of the sequence, or null if not available. |
Object |
next(StoreContext ctx,
ClassMetaData cls)
Return the next value in the sequence. |
void |
setType(int type)
Set the type of sequence. |
Field Detail |
---|
static final int TYPE_DEFAULT
static final int TYPE_NONTRANSACTIONAL
static final int TYPE_TRANSACTIONAL
static final int TYPE_CONTIGUOUS
Method Detail |
---|
void setType(int type)
Object next(StoreContext ctx, ClassMetaData cls)
ctx
- the current contextcls
- if this is a datastore identity sequence, the
persistent class the identity value is for; else nullObject current(StoreContext ctx, ClassMetaData cls)
ctx
- the current contextcls
- if this is a datastore identity sequence, the
persistent class the identity value is for; else nullvoid allocate(int additional, StoreContext ctx, ClassMetaData cls)
ctx
- the current contextcls
- if this is a datastore identity sequence, the
persistent class the identity value is for; else nullvoid close()
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |