| java.lang.Object org.hsqldb.NumberSequence
NumberSequence | public class NumberSequence (Code) | | Maintains a sequence of numbers.
author: fredt@users since: 1.7.2 version: 1.7.2 |
Field Summary | |
HsqlName | name |
Constructor Summary | |
public | NumberSequence(HsqlName name, long value, long increment, int type) |
NumberSequence | public NumberSequence(HsqlName name, long value, long increment, int type)(Code) | | constructor with initial value and increment;
|
getIncrement | long getIncrement()(Code) | | |
getName | public HsqlName getName()(Code) | | |
getValue | synchronized long getValue()(Code) | | principal getter for the next sequence value
|
getValue | synchronized long getValue(long value)(Code) | | getter for a given value
|
peek | public long peek()(Code) | | get next value without incrementing
|
reset | void reset()(Code) | | reset to start value
|
reset | public void reset(long value)(Code) | | reset to new initial value
|
reset | void reset(long value, long increment)(Code) | | |
resetWasUsed | void resetWasUsed()(Code) | | reset the wasUsed flag
|
wasUsed | boolean wasUsed()(Code) | | true if one or more values were retreived since the last resetWasUsed
|
|
|