pt.jcodeutil.core.ejb.numbering.ent
Interface SequencerManager

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface SequencerManager
extends javax.ejb.EJBObject

Title: Description: Copyright: Copyright (c) 2003 Company:

Version:
1.0
Author:
Marco Samuel (samuelbb@sapo.pt)

Method Summary
 long nextValue(java.lang.String key)
          Obtains the next value for a sequence with a given name, creating this sequence with a base value of 1, if it doesn't exist already
 long nextValue(java.lang.String key, long base)
          Obtains the next value for a sequence with a given name, creating this sequence with a base value, if it doesn't exist already
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

nextValue

public long nextValue(java.lang.String key,
                      long base)
               throws java.rmi.RemoteException
Obtains the next value for a sequence with a given name, creating this sequence with a base value, if it doesn't exist already
Parameters:
key - identification of the sequence
base - value to be started if it doesn't exists
Returns:
the next value of the sequence

nextValue

public long nextValue(java.lang.String key)
               throws java.rmi.RemoteException
Obtains the next value for a sequence with a given name, creating this sequence with a base value of 1, if it doesn't exist already
Parameters:
key - identification of the sequence
Returns:
the next value of the sequence