public class Sequence
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
cycle
Flag for cycling sequences
|
private long |
increment
The increment value, must not be 0
|
private long |
initial
The initial value of the sequence.
|
private java.lang.String |
legacyName
The legacy name of the sequence used by dynamic forms.
|
private long |
max
The maximum value
|
private long |
min
The minimum value
|
private java.lang.String |
name
The sql-legal name.
|
private java.lang.String |
schema
The database schema to which this sequence belongs to
|
Constructor and Description |
---|
Sequence(java.lang.String schema,
java.lang.String legacyName,
java.lang.String sqlName,
long init,
long min,
long max,
long increment,
boolean cycle)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getIncrement()
Obtain increment of the sequence.
|
long |
getInitial()
Obtain the initial value of the sequence.
|
java.lang.String |
getLegacyName()
Obtain the name for the sequence from 4GL.
|
long |
getMax()
Obtain the maximum allowable value for the sequence.
|
long |
getMin()
Obtain the minimum allowable value for the sequence.
|
java.lang.String |
getName()
Obtain the name for the sequence.
|
java.lang.String |
getSchema()
Obtain the schema where the sequence was defined into.
|
boolean |
isCycle()
Checks if the sequence is cycling.
|
java.lang.String |
toString()
Displays the content of this sequence in a string.
|
private java.lang.String schema
private java.lang.String name
private java.lang.String legacyName
private long initial
private long min
private long max
private long increment
private boolean cycle
public Sequence(java.lang.String schema, java.lang.String legacyName, java.lang.String sqlName, long init, long min, long max, long increment, boolean cycle)
schema
- The name of the scheme this sequence belong to.sqlName
- The name of the sequence from database.legacyName
- The original name of the sequence in 4GL.init
- Initial value of the sequence.min
- Minimum value of the sequence.max
- Maximum value of the sequence.increment
- The increment of the sequence.cycle
- Cycling flag.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getSchema()
public java.lang.String getLegacyName()
public java.lang.String getName()
public long getMin()
public long getMax()
public long getIncrement()
public boolean isCycle()
true
if the sequence is cycling.public long getInitial()