wt.fc
Class SequencePool

java.lang.Object
  extended bywt.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


Field Summary
private  int currentIdx
           
private  String name
           
private  long[] pool
           
 
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
 

Field Detail

currentIdx

private int currentIdx

pool

private long[] pool

name

private String name
Constructor Detail

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
Method Detail

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