public interface Seq extends Closeable
| Modifier and Type | Field and Description | 
|---|---|
| static int | TYPE_CONTIGUOUS | 
| static int | TYPE_DEFAULT | 
| static int | TYPE_NONTRANSACTIONAL | 
| static int | TYPE_TRANSACTIONAL | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
static final int TYPE_DEFAULT
static final int TYPE_NONTRANSACTIONAL
static final int TYPE_TRANSACTIONAL
static final int TYPE_CONTIGUOUS
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 nullCopyright © 2006–2018 Apache Software Foundation. All rights reserved.