org.axiondb
public class Sequence extends Object implements 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.
Version: $Revision: 1.15 $ $Date: 2007/11/13 19:04:02 $
Field Summary | |
---|---|
static int | RADIX |
Constructor Summary | |
---|---|
Sequence() | |
Sequence(String name, DataType type, BigInteger startVal, BigInteger incrementBy, BigInteger maxValue, BigInteger minValue, boolean isCycle)
Create a sequence with all ANSI 2003 parameters. | |
Sequence(String name, int startVal)
Create a sequence starting whose initial value is startVal . |
Method Summary | |
---|---|
void | addSequenceModificationListener(SequenceModificationListener listener) |
boolean | equals(Object otherobject)
Returns true iff otherobject is a Sequencewhose
name are equal to mine. |
Object | evaluate()
Increment and return the next value in this sequence. |
Object | getCuurentValue() |
DataType | getDataType() |
BigInteger | getIncrementBy() |
BigInteger | getMaxValue() |
BigInteger | getMinValue() |
String | getName()
Get the name of this sequence. |
Object | getValue()
Get the current value of this sequence. |
int | hashCode()
Returns a hash code in keeping with the standard Object#equals equals /
Object#hashCode hashCode contract. |
boolean | isCycle() |
void | read(DataInput in) |
void | write(DataOutput out)
Writes the given value to the given DataOutput .
|
true
iff otherobject is a Sequencewhose
name are equal to mine.Object#equals equals
/
Object#hashCode hashCode
contract.See Also: Sequence
DataOutput
.
Parameters: value the value to write, which must be Sequence