public class ERXSequence extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ERXSequence.DatabaseSequence
Multi-instance-safe subclass of ERXSequence.
|
static class |
ERXSequence.NativeDatabaseSequence
NativeDatabaseSequence uses ERXSQLHelper.getNextValFromSequenceNamed to
generate a sequence value using your database's native sequence generation scheme.
|
static class |
ERXSequence.PrimaryKeySequence |
Modifier and Type | Field and Description |
---|---|
protected long |
_lastValue |
protected long |
_maxValue |
protected org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ERXSequence(String name) |
ERXSequence(String name,
long initialValue) |
Modifier and Type | Method and Description |
---|---|
static ERXSequence |
createDatabaseSequenceWithName(EOEditingContext ec,
String modelName,
String name) |
static ERXSequence |
createSequenceWithName(String name,
long initialValue) |
protected long |
increasedMaxValue(long increment) |
protected long |
increment() |
protected long |
lastValue() |
protected long |
maxValue() |
String |
name() |
long |
nextValue() |
long |
nextValue(long increment) |
static void |
registerSequenceWithName(ERXSequence sequence,
String name) |
static ERXSequence |
sequenceWithName(String name) |
protected org.apache.log4j.Logger log
protected long _lastValue
protected long _maxValue
public ERXSequence(String name)
public ERXSequence(String name, long initialValue)
public String name()
public long nextValue()
protected long maxValue()
public long nextValue(long increment)
protected long lastValue()
protected long increasedMaxValue(long increment)
protected long increment()
public static ERXSequence sequenceWithName(String name)
public static ERXSequence createSequenceWithName(String name, long initialValue)
public static ERXSequence createDatabaseSequenceWithName(EOEditingContext ec, String modelName, String name)
public static void registerSequenceWithName(ERXSequence sequence, String name)
Copyright © 2002 – 2024 Project Wonder.