
public abstract class OSequence extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OSequence.CreateParams |
static class |
OSequence.SEQUENCE_TYPE |
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
protected static int |
DEF_MAX_RETRY |
static int |
DEFAULT_CACHE |
static int |
DEFAULT_INCREMENT |
static long |
DEFAULT_START |
| Modifier | Constructor and Description |
|---|---|
protected |
OSequence() |
protected |
OSequence(ODocument iDocument) |
protected |
OSequence(ODocument iDocument,
OSequence.CreateParams params) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
callRetry(Callable<T> callable,
String method) |
abstract long |
current() |
protected ODatabaseDocumentInternal |
getDatabase() |
ODocument |
getDocument() |
protected int |
getIncrement() |
int |
getMaxRetry() |
String |
getName() |
static String |
getSequenceName(ODocument iDocument) |
abstract OSequence.SEQUENCE_TYPE |
getSequenceType() |
static OSequence.SEQUENCE_TYPE |
getSequenceType(ODocument document) |
protected long |
getStart() |
protected long |
getValue() |
static void |
initClass(OClassImpl sequenceClass) |
protected void |
initSequence(OSequence.CreateParams params) |
abstract long |
next() |
void |
onUpdate(ODocument iDocument) |
protected void |
reloadSequence() |
abstract long |
reset() |
void |
save() |
void |
save(ODatabaseDocument database) |
protected void |
setIncrement(int value) |
void |
setMaxRetry(int maxRetry) |
OSequence |
setName(String name) |
protected void |
setStart(long value) |
protected void |
setValue(long value) |
boolean |
updateParams(OSequence.CreateParams params) |
public static final long DEFAULT_START
public static final int DEFAULT_INCREMENT
public static final int DEFAULT_CACHE
protected static final int DEF_MAX_RETRY
public static final String CLASS_NAME
protected OSequence()
protected OSequence(ODocument iDocument)
protected OSequence(ODocument iDocument, OSequence.CreateParams params)
public void save()
public void save(ODatabaseDocument database)
public ODocument getDocument()
protected void initSequence(OSequence.CreateParams params)
public boolean updateParams(OSequence.CreateParams params)
public void onUpdate(ODocument iDocument)
protected long getValue()
protected void setValue(long value)
protected int getIncrement()
protected void setIncrement(int value)
protected long getStart()
protected void setStart(long value)
public int getMaxRetry()
public void setMaxRetry(int maxRetry)
public String getName()
protected ODatabaseDocumentInternal getDatabase()
public static OSequence.SEQUENCE_TYPE getSequenceType(ODocument document)
public static void initClass(OClassImpl sequenceClass)
public abstract long next()
public abstract long current()
public abstract long reset()
public abstract OSequence.SEQUENCE_TYPE getSequenceType()
protected void reloadSequence()
Copyright © 2009–2025 OrientDB. All rights reserved.