com.opensymphony.module.sequence
Class SequenceGeneratorEJB

java.lang.Object
  extended bycom.opensymphony.module.sequence.SequenceGeneratorEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class SequenceGeneratorEJB
extends java.lang.Object
implements javax.ejb.SessionBean

SequenceGenerator Session EJB implementation.

Utilizes the HIGH/LOW OID strategy as described at http://www.ambysoft.com/mappingObjects.html .

Version:
$Revision: 1.1.1.1 $
Author:
Joe Walnes, Hani Suleiman
See Also:
Serialized Form

Constructor Summary
SequenceGeneratorEJB()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
          Session created.
 void ejbPassivate()
           
 void ejbRemove()
           
 long getCount(java.lang.String sequenceName)
           
 void setSessionContext(javax.ejb.SessionContext context)
          Session context set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceGeneratorEJB

public SequenceGeneratorEJB()
Method Detail

getCount

public long getCount(java.lang.String sequenceName)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext context)
Session context set. Lookup Home interface for Sequence Entity

Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Session created. Initialize.

Throws:
javax.ejb.CreateException

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

See www.opensymphony.com for more information.