com.synametrics.commons.util.logging
Class Sequence

java.lang.Object
  |
  +--com.synametrics.commons.util.logging.Sequence

public class Sequence
extends java.lang.Object


Constructor Summary
Sequence()
           
 
Method Summary
static long getCurVal(java.lang.String sequenceName)
          Returns the current value of the sequence
static long getNextVal(java.lang.String sequenceName)
          Returns the next value of the sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence

public Sequence()
Method Detail

getNextVal

public static long getNextVal(java.lang.String sequenceName)
Returns the next value of the sequence

Parameters:
sequenceName - Name of the sequence
Returns:
Next sequence number

getCurVal

public static long getCurVal(java.lang.String sequenceName)
Returns the current value of the sequence

Parameters:
sequenceName - Name of the sequence
Returns:
current sequence number