public class Sequence
extends java.lang.Object
implements java.io.Serializable
Note: If increment value is negative, then the sequence generator is a descending sequence generator; otherwise, it is an ascending sequence generator.
Note: The data type of a sequence generator must be exact numeric with scale 0.
| Modifier and Type | Field and Description |
|---|---|
static int |
RADIX |
| Constructor and Description |
|---|
Sequence() |
Sequence(java.lang.String name,
DataType type,
java.math.BigInteger startVal,
java.math.BigInteger incrementBy,
java.math.BigInteger maxValue,
java.math.BigInteger minValue,
boolean isCycle)
Create a sequence with all ANSI 2003 parameters.
|
Sequence(java.lang.String name,
int startVal)
Create a sequence starting whose initial value is startVal .
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSequenceModificationListener(SequenceModificationListener listener) |
boolean |
equals(java.lang.Object otherobject)
Returns
true iff otherobject is a Sequencewhose
name are equal to mine. |
java.lang.Object |
evaluate()
Increment and return the next value in this sequence.
|
java.lang.Object |
getCuurentValue() |
DataType |
getDataType() |
java.math.BigInteger |
getIncrementBy() |
java.math.BigInteger |
getMaxValue() |
java.math.BigInteger |
getMinValue() |
java.lang.String |
getName()
Get the name of this sequence.
|
java.lang.Object |
getValue()
Get the current value of this sequence.
|
int |
hashCode()
Returns a hash code in keeping with the standard
equals/
hashCodecontract. |
boolean |
isCycle() |
void |
read(java.io.DataInput in) |
void |
write(java.io.DataOutput out)
Writes the given value to the given
DataOutput. |
public Sequence()
public Sequence(java.lang.String name,
DataType type,
java.math.BigInteger startVal,
java.math.BigInteger incrementBy,
java.math.BigInteger maxValue,
java.math.BigInteger minValue,
boolean isCycle)
public Sequence(java.lang.String name,
int startVal)
public void addSequenceModificationListener(SequenceModificationListener listener)
public boolean equals(java.lang.Object otherobject)
true iff otherobject is a Sequencewhose
name are equal to mine.equals in class java.lang.Objectpublic java.lang.Object evaluate()
throws AxionException
AxionExceptionpublic java.lang.Object getCuurentValue()
throws AxionException
AxionExceptionpublic DataType getDataType()
public java.math.BigInteger getIncrementBy()
public java.math.BigInteger getMaxValue()
public java.math.BigInteger getMinValue()
public java.lang.String getName()
public java.lang.Object getValue()
throws AxionException
AxionExceptionpublic int hashCode()
equals/
hashCodecontract.hashCode in class java.lang.Objectpublic boolean isCycle()
public void read(java.io.DataInput in)
throws java.lang.Exception
java.lang.Exceptionwrite(java.io.DataOutput)public void write(java.io.DataOutput out)
throws java.io.IOException
DataOutput.value - the value to write, which must be Sequencejava.io.IOException