com.ibm.websphere.samples.scheduler.accountreportejb
Class AccountBean

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

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

Implementation class for the Account entity bean. The Account entity stores information about accounts in the database.

See Also:
AccountHome, Account, Serialized Form

Constructor Summary
AccountBean()
           
 
Method Summary
 void ejbActivate()
          A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.
 java.lang.Integer ejbCreate(java.lang.Integer key)
           
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbPassivate()
          A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.
 void ejbPostCreate(java.lang.Integer key)
           
 void ejbRemove()
          A container invokes this method before it removes the EJB object that is currently associated with the instance.
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
abstract  java.lang.Integer getAccountNumber()
          Get accountNumber
abstract  java.lang.Double getBalance()
          Get balance
abstract  java.lang.String getDescription()
          Get description
abstract  java.lang.String getOwnerName()
          Get ownerName
abstract  void setAccountNumber(java.lang.Integer accountNumber)
          Set accountNumber
abstract  void setBalance(java.lang.Double balance)
          Set balance
abstract  void setDescription(java.lang.String description)
          Set description
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the associated entity context.
abstract  void setOwnerName(java.lang.String ownerName)
          Set ownerName
 void unsetEntityContext()
          Unset the associated entity context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountBean

public AccountBean()
Method Detail

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException
A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.

Specified by:
ejbActivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.

Specified by:
ejbPassivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
A container invokes this method before it removes the EJB object that is currently associated with the instance.

Specified by:
ejbRemove in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbLoad

public void ejbLoad()
             throws javax.ejb.EJBException
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.

Specified by:
ejbLoad in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbStore

public void ejbStore()
              throws javax.ejb.EJBException
A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.

Specified by:
ejbStore in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws javax.ejb.EJBException
Set the associated entity context.

Specified by:
setEntityContext in interface javax.ejb.EntityBean
Parameters:
ctx - An EntityContext interface for the instance. The instance should store the reference to the context in an instance variable.
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

unsetEntityContext

public void unsetEntityContext()
                        throws javax.ejb.EJBException
Unset the associated entity context.

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbCreate

public java.lang.Integer ejbCreate(java.lang.Integer key)
                            throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.Integer key)
                   throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

getAccountNumber

public abstract java.lang.Integer getAccountNumber()
Get accountNumber

Returns:
account number

setAccountNumber

public abstract void setAccountNumber(java.lang.Integer accountNumber)
Set accountNumber

Parameters:
accountNumber -

getBalance

public abstract java.lang.Double getBalance()
Get balance

Returns:
balance

setBalance

public abstract void setBalance(java.lang.Double balance)
Set balance

Parameters:
balance -

getDescription

public abstract java.lang.String getDescription()
Get description

Returns:
description

setDescription

public abstract void setDescription(java.lang.String description)
Set description

Parameters:
description -

getOwnerName

public abstract java.lang.String getOwnerName()
Get ownerName

Returns:
owner name

setOwnerName

public abstract void setOwnerName(java.lang.String ownerName)
Set ownerName

Parameters:
ownerName -