public class SequenceGeneratorEJB
extends java.lang.Object
implements javax.ejb.SessionBean
Utilizes the HIGH/LOW OID strategy as described at http://www.ambysoft.com/mappingObjects.html .
Constructor and Description |
---|
SequenceGeneratorEJB() |
Modifier and Type | Method and Description |
---|---|
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.
|
public long getCount(java.lang.String sequenceName)
public void setSessionContext(javax.ejb.SessionContext context)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean