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

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

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

Bean implementation for the AccountReport entity bean

See Also:
AccountReportHome, AccountReport, Serialized Form

Constructor Summary
AccountReportBean()
           
 
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.Long ejbCreate()
          Container invoked callback.
 java.lang.Long ejbCreate(java.lang.Long key)
          Container invoked callback.
 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()
          Container invoked callback.
 void ejbPostCreate(java.lang.Long key)
          Container invoked callback.
 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.Long getTimeReportGenerated()
          Gets the time this report was generated in milliseconds since the epoch, GMT
abstract  java.lang.Double getTotalBalance()
          Gets the total balance for this record.
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the associated entity context.
abstract  void setTimeReportGenerated(java.lang.Long timeReportGenerated)
          Sets the time this report was generated.
abstract  void setTotalBalance(java.lang.Double totalBalance)
          Sets the total balance for this record
 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

AccountReportBean

public AccountReportBean()
Method Detail

ejbPostCreate

public void ejbPostCreate()
Container invoked callback.


ejbPostCreate

public void ejbPostCreate(java.lang.Long key)
Container invoked callback.

Parameters:
key - The key

ejbCreate

public java.lang.Long ejbCreate()
                         throws javax.ejb.CreateException
Container invoked callback.

Returns:
The primary key for the row
Throws:
javax.ejb.CreateException

ejbCreate

public java.lang.Long ejbCreate(java.lang.Long key)
                         throws javax.ejb.CreateException
Container invoked callback.

Parameters:
key - The key
Returns:
The primary key for the row
Throws:
javax.ejb.CreateException

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.

getTotalBalance

public abstract java.lang.Double getTotalBalance()
Gets the total balance for this record.

Returns:
The balance of all accounts at the time this report was generated.

setTotalBalance

public abstract void setTotalBalance(java.lang.Double totalBalance)
Sets the total balance for this record

Parameters:
totalBalance - The new value of the balance

getTimeReportGenerated

public abstract java.lang.Long getTimeReportGenerated()
Gets the time this report was generated in milliseconds since the epoch, GMT

Returns:
time in milliseconds

setTimeReportGenerated

public abstract void setTimeReportGenerated(java.lang.Long timeReportGenerated)
Sets the time this report was generated. Time is in milliseconds since the epoch, GMT

Parameters:
timeReportGenerated - The new value for the time field