wt.fc
Class SequencePool
java.lang.Object
wt.fc.SequencePool
- public class SequencePool
- extends Object
This class is used to manage a pool of sequence values obtained from a
datastore seuqence. The sequenceName and sequenceInterval must match with
an existing datastore sequence.
Supported API: false
Extendable: false
Constructor Summary |
SequencePool(Class a_sequence)
This constructor initializes the instance. |
Method Summary |
private void |
fillPool()
|
long |
next()
This method returns the next value in the seuqence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentIdx
private int currentIdx
pool
private long[] pool
name
private String name
SequencePool
public SequencePool(Class a_sequence)
throws WTException
- This constructor initializes the instance.
Supported API: false
- Parameters:
a_sequence
- the class representing the Datastore sequence to manage
next
public long next()
throws WTException
- This method returns the next value in the seuqence.
Supported API: false
- Returns:
- next value in the sequence
- Throws:
WTException
fillPool
private void fillPool()
throws WTException
- Throws:
WTException