pt.jcodeutil.core.ejb.numbering.ent
Class SequencerManagerBean
java.lang.Object
|
+--pt.jcodeutil.core.ejb.numbering.ent.SequencerManagerBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class SequencerManagerBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
Title:
Description:
Copyright: Copyright (c) 2003
Company:
- Version:
- 1.0
- Author:
- Marco Samuel (samuelbb@sapo.pt)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequencerManagerBean
public SequencerManagerBean()
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate in interface javax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove in interface javax.ejb.SessionBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
- Specified by:
setSessionContext in interface javax.ejb.SessionBean
nextValue
public long nextValue(java.lang.String key)
throws java.rmi.RemoteException
- For the key given by argument, get the next value.
- Parameters:
key - unique identification of the id to be give- Returns:
- the next id identified by the key
- Throws:
java.rmi.RemoteException -
nextValue
public long nextValue(java.lang.String key,
long base)
throws java.rmi.RemoteException
- Get the next value for the key given by argument. If the key doesn't exist, create one
based on the base value.
- Parameters:
key - base - - Returns:
- the next value for this key
- Throws:
java.rmi.RemoteException -