|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.examples.bo.customer.CustomerBean
com.bankframe.examples.bo.impl.customer.CustomerBean
com.bankframe.examples.bo.impl.customer.CustomerBMPBean
public class CustomerBMPBean
This class is the implementation of the Customer Entity EJB using bean managed persistence.
| Field Summary |
|---|
| Fields inherited from class com.bankframe.examples.bo.customer.CustomerBean |
|---|
firstName, lastName, ownerId, title |
| Fields inherited from interface com.bankframe.ejb.EEntity |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
CustomerBMPBean()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
amend(String title,
String firstName,
String lastName)
This method amends the attributes of the customer entity. |
Address |
amendAddress(String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
This method amends the address entity associated with this customer entity. |
EPrimaryKey |
createPrimaryKey(DataPacket dp)
This method builds a primary from a given DataPacket. |
void |
ejbActivate()
This method is called by the EJB container when this EJB instance is activated. |
CustomerPK |
ejbCreate(String ownerId,
String title,
String firstName,
String lastName)
This method initialises a new instance of the customer entity. |
Enumeration |
ejbFindAll()
This method gets all instances of this EJB |
Enumeration |
ejbFindByFirstName(String firstName)
This method get all instance of this EJB with the given first name |
Enumeration |
ejbFindByLastName(String lastName)
This method get all instance of this EJB with the given last name |
CustomerPK |
ejbFindByPrimaryKey(CustomerPK primaryKey)
This method verifies that the specified customer instance exists. |
Enumeration |
ejbFindByTitle(String title)
This method get all instance of this EJB with the given title. |
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 ownerId,
String title,
String firstName,
String lastName)
|
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. |
Vector |
getDependentEntities()
This method gets all entity beans that depend on this EJB. |
String |
getEntityName()
This method gets the JNDI name of this entity. |
EPersister |
getPersister()
This method retrieves the persister to use with this entity bean instance. |
EPrimaryKey |
getPrimaryKey()
This method returns 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.customer.CustomerBean |
|---|
getAddress, toDataPacket |
| Methods inherited from class com.bankframe.examples.bo.customer.CustomerBean |
|---|
create, getFirstName, getLastName, getOwnerId, getTitle |
| 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 CustomerBMPBean()
| Method Detail |
|---|
public void amend(String title,
String firstName,
String lastName)
throws ValidationException
amend in class CustomerBeantitle - firstName - lastName -
ValidationException
public Address amendAddress(String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
throws ProcessingErrorException,
ValidationException,
RemoteException
amendAddress in class CustomerBeanaddressLine1 - addressLine2 - addressLine3 - addressLine4 - country - postCode -
ProcessingErrorException
RemoteException
ValidationException
public EPrimaryKey createPrimaryKey(DataPacket dp)
throws ProcessingErrorException
createPrimaryKey in interface EBMPEntitydp - the DataPacket to create the key from
ProcessingErrorException - if processing fails.public void ejbActivate()
ejbActivate in interface EntityBean
public CustomerPK ejbCreate(String ownerId,
String title,
String firstName,
String lastName)
throws CreateException,
ValidationException,
ProcessingErrorException
ownerId - title - firstName - lastName -
CreateException
ProcessingErrorException
ValidationException
public Enumeration ejbFindAll()
throws FinderException,
ValidationException
FinderException
ValidationException
public Enumeration ejbFindByFirstName(String firstName)
throws FinderException,
ValidationException
firstName - the first name of the customers to retrieve
FinderException
ValidationException
public Enumeration ejbFindByLastName(String lastName)
throws FinderException,
ValidationException
lastName - the last name of the customers to retrieve
FinderException
ValidationException
public CustomerPK ejbFindByPrimaryKey(CustomerPK primaryKey)
throws FinderException,
ValidationException
primaryKey - the primary to check if it exists
FinderException
ValidationException
public Enumeration ejbFindByTitle(String title)
throws FinderException,
ValidationException
title - of the customers to retrieve
FinderException
ValidationExceptionpublic void ejbLoad()
ejbLoad in interface EntityBeanpublic void ejbPassivate()
ejbPassivate in interface EntityBean
public void ejbPostCreate(String ownerId,
String title,
String firstName,
String lastName)
public void ejbRemove()
ejbRemove in interface EntityBeanpublic void ejbStore()
ejbStore in interface EntityBean
public Vector getDependentEntities()
throws ProcessingErrorException,
RemoteException
getDependentEntities in interface EBMPMasterEntityProcessingErrorException
RemoteExceptionpublic 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 withpublic void setEntityContext(EntityContext newCtx)
setEntityContext in interface EntityBeanpublic void unsetEntityContext()
unsetEntityContext in interface EntityBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||