com.ibm.websphere.samples.plantsbywebsphereejb
Class IdGeneratorBean

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.IdGeneratorBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public abstract class IdGeneratorBean
extends java.lang.Object
implements javax.ejb.EntityBean

Bean implementation class for Enterprise Bean: IdGenerator

See Also:
Serialized Form

Constructor Summary
IdGeneratorBean()
           
 
Method Summary
 void ejbActivate()
          ejbActivate
 IdGeneratorKey ejbCreate(java.lang.String idName)
          ejbCreate
 IdGeneratorKey ejbCreate(java.lang.String idName, int idValue)
          ejbCreate
 void ejbLoad()
          ejbLoad
 void ejbPassivate()
          ejbPassivate
 void ejbPostCreate(java.lang.String idName)
          ejbPostCreate
 void ejbPostCreate(java.lang.String idName, int idValue)
          ejbPostCreate
 void ejbRemove()
          ejbRemove
 void ejbStore()
          ejbStore
 javax.ejb.EntityContext getEntityContext()
          getEntityContext
abstract  java.lang.String getIdName()
          Get accessor for persistent attribute: idName
abstract  int getIdValue()
          Get accessor for persistent attribute: idValue
 int nextId()
          Get the next available id.
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext
abstract  void setIdName(java.lang.String newIdName)
          Set accessor for persistent attribute: idName
abstract  void setIdValue(int newIdValue)
          Set accessor for persistent attribute: idValue
 void unsetEntityContext()
          unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGeneratorBean

public IdGeneratorBean()
Method Detail

ejbCreate

public IdGeneratorKey ejbCreate(java.lang.String idName)
                         throws javax.ejb.CreateException
ejbCreate

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String idName)
                   throws javax.ejb.CreateException
ejbPostCreate

Throws:
javax.ejb.CreateException

ejbCreate

public IdGeneratorKey ejbCreate(java.lang.String idName,
                                int idValue)
                         throws javax.ejb.CreateException
ejbCreate

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String idName,
                          int idValue)
                   throws javax.ejb.CreateException
ejbPostCreate

Throws:
javax.ejb.CreateException

getIdName

public abstract java.lang.String getIdName()
Get accessor for persistent attribute: idName


setIdName

public abstract void setIdName(java.lang.String newIdName)
Set accessor for persistent attribute: idName


getIdValue

public abstract int getIdValue()
Get accessor for persistent attribute: idValue


setIdValue

public abstract void setIdValue(int newIdValue)
Set accessor for persistent attribute: idValue


nextId

public int nextId()
Get the next available id.


setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext

Specified by:
setEntityContext in interface javax.ejb.EntityBean

getEntityContext

public javax.ejb.EntityContext getEntityContext()
getEntityContext


unsetEntityContext

public void unsetEntityContext()
unsetEntityContext

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
ejbActivate

Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
ejbLoad

Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
ejbPassivate

Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
ejbRemove

Specified by:
ejbRemove in interface javax.ejb.EntityBean
Throws:
javax.ejb.RemoveException

ejbStore

public void ejbStore()
ejbStore

Specified by:
ejbStore in interface javax.ejb.EntityBean