|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.examples.bo.account.AccountBean
com.bankframe.examples.bo.impl.account.AccountBean
com.bankframe.examples.bo.impl.account.AccountBMPBean
public class AccountBMPBean
This class is the implementation of the Account Entity EJB using bean managed persistence
| Field Summary |
|---|
| Fields inherited from class com.bankframe.examples.bo.account.AccountBean |
|---|
accountName, accountNumber, cardNumber |
| Fields inherited from interface com.bankframe.ejb.EEntity |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
AccountBMPBean()
Default constructor |
|
| Method Summary | |
|---|---|
void |
amend(String accountName)
This method amends the attributes of the Address entity. |
EPrimaryKey |
createPrimaryKey(DataPacket dp)
This method creates a primary key instance from the specified data. |
void |
ejbActivate()
This method is called by the EJB container when this EJB instance is activated. |
AccountPK |
ejbCreate(String cardNumber,
String accountNumber,
String accountName)
This method initialises a new instance of the Address entity. |
Enumeration |
ejbFindAll()
This method gets all the instances of the Address entity. |
AccountPK |
ejbFindByPrimaryKey(AccountPK primaryKey)
This method verifies that the specified Address instance exists. |
void |
ejbLoad()
This method is called by the EJB container when this EJB instance must refresh itself from persistent storage. |
void |
ejbPassivate()
This method is called by the EJB container when this EJB instance is passivated. |
void |
ejbPostCreate(String cardNumber,
String accountNumber,
String accountName)
|
void |
ejbRemove()
This method is called by the EJB container when this EJB instance must be deleted from persistent storage. |
void |
ejbStore()
This method is called by the EJB contain when this EJB instance must store its attributes in persistent storage. |
String |
getEntityName()
This method returns the JNDI name of this entity. |
EPersister |
getPersister()
This method retrieves the persister to use with this entity bean instance. |
EPrimaryKey |
getPrimaryKey()
This method gets the primary key object for this entity instance. |
void |
populate(DataPacket dp)
This method populates the attributes of the entity instance with the specified data. |
void |
setEntityContext(EntityContext newCtx)
This method is called by the EJB container when the EJB instance is about to be used. |
void |
unsetEntityContext()
This method is called by the EJB container when the EJB instance is no longer being used. |
| Methods inherited from class com.bankframe.examples.bo.impl.account.AccountBean |
|---|
toDataPacket |
| Methods inherited from class com.bankframe.examples.bo.account.AccountBean |
|---|
create, getAccountName, getAccountNumber, getCardNumber |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bankframe.ejb.EEntity |
|---|
toDataPacket |
| Constructor Detail |
|---|
public AccountBMPBean()
| Method Detail |
|---|
public void amend(String accountName)
throws ValidationException
amend in class AccountBeanaccountName -
ValidationException
public EPrimaryKey createPrimaryKey(DataPacket dp)
throws ProcessingErrorException
createPrimaryKey in interface EBMPEntitydp - the DataPacket to create the primary key from
ProccessingErrorException - if processing fails
ProcessingErrorException - if processing fails.public void ejbActivate()
ejbActivate in interface EntityBean
public AccountPK ejbCreate(String cardNumber,
String accountNumber,
String accountName)
throws CreateException,
ValidationException,
ProcessingErrorException
cardNumber - accountNumber - accountName -
CreateException
ProcessingErrorException
ValidationException
public Enumeration ejbFindAll()
throws FinderException,
ValidationException
FinderException
ValidationException
public AccountPK ejbFindByPrimaryKey(AccountPK primaryKey)
throws FinderException,
ValidationException
primaryKey - the key of the Address to check
FinderException
ValidationExceptionpublic void ejbLoad()
ejbLoad in interface EntityBeanpublic void ejbPassivate()
ejbPassivate in interface EntityBean
public void ejbPostCreate(String cardNumber,
String accountNumber,
String accountName)
cardNumber - accountNumber - accountName - public void ejbRemove()
ejbRemove in interface EntityBeanpublic void ejbStore()
ejbStore in interface EntityBeanpublic String getEntityName()
getEntityName in interface EBMPEntitypublic EPersister getPersister()
getPersister in interface EBMPEntitypublic EPrimaryKey getPrimaryKey()
getPrimaryKey in interface EBMPEntitypublic void populate(DataPacket dp)
populate in interface EBMPEntitydp - the datapacket to populate the entity withpublic void setEntityContext(EntityContext newCtx)
setEntityContext in interface EntityBeannewCtx - public void unsetEntityContext()
unsetEntityContext in interface EntityBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||