|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axiondb.Sequence
public class Sequence
A database sequence. A sequence provides a mechanism for obtaining unique integer values from the database.
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.
| Field Summary | |
|---|---|
static int |
RADIX
|
| Constructor Summary | |
|---|---|
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 . |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int RADIX
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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.Object
public java.lang.Object evaluate()
throws AxionException
AxionException
public 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 Sequence
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||