public class OSequenceHelper extends Object
Modifier and Type | Field and Description |
---|---|
static OSequence.SEQUENCE_TYPE |
DEFAULT_SEQUENCE_TYPE |
Constructor and Description |
---|
OSequenceHelper() |
Modifier and Type | Method and Description |
---|---|
static OSequence |
createSequence(ODocument document) |
static OSequence |
createSequence(OSequence.SEQUENCE_TYPE sequenceType,
OSequence.CreateParams params,
ODocument document) |
static OSequence |
createSequenceOnLocal(OSequenceLibrary sequenceLibary,
String sequenceName,
OSequence.SEQUENCE_TYPE sequenceType,
OSequence.CreateParams params) |
static void |
dropLocalSequence(OSequenceLibrary sequenceLibary,
String name) |
static OSequence.SEQUENCE_TYPE |
getSequenceTyeFromString(String typeAsString) |
static long |
resetSequenceOnLocal(OSequence seq) |
static long |
sequenceCurrentOnLocal(OSequence seq) |
static long |
sequenceNextOnLocal(OSequence seq) |
static long |
sequenceNextWithNewCurrentValueOnLocal(OSequenceCached seq,
long currentValue) |
static boolean |
updateParamsOnLocal(OSequence.CreateParams params,
OSequence seq) |
public static final OSequence.SEQUENCE_TYPE DEFAULT_SEQUENCE_TYPE
public static OSequence createSequence(OSequence.SEQUENCE_TYPE sequenceType, OSequence.CreateParams params, ODocument document)
public static OSequence.SEQUENCE_TYPE getSequenceTyeFromString(String typeAsString)
public static boolean updateParamsOnLocal(OSequence.CreateParams params, OSequence seq) throws ODatabaseException
ODatabaseException
public static long resetSequenceOnLocal(OSequence seq) throws ODatabaseException
ODatabaseException
public static long sequenceNextOnLocal(OSequence seq) throws ODatabaseException
ODatabaseException
public static long sequenceCurrentOnLocal(OSequence seq) throws ODatabaseException
ODatabaseException
public static void dropLocalSequence(OSequenceLibrary sequenceLibary, String name) throws ODatabaseException
ODatabaseException
public static OSequence createSequenceOnLocal(OSequenceLibrary sequenceLibary, String sequenceName, OSequence.SEQUENCE_TYPE sequenceType, OSequence.CreateParams params)
public static long sequenceNextWithNewCurrentValueOnLocal(OSequenceCached seq, long currentValue) throws ODatabaseException
ODatabaseException
Copyright © 2009–2020 OrientDB. All rights reserved.