|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.examples.bo.address.AddressBean
com.bankframe.examples.bo.impl.address.AddressBean
com.bankframe.examples.bo.impl.address.AddressBMPBean
public class AddressBMPBean
This class is the implementation of the Address Entity EJB using bean managed persistence
| Field Summary |
|---|
| Fields inherited from class com.bankframe.examples.bo.address.AddressBean |
|---|
addressLine1, addressLine2, addressLine3, addressLine4, country, ownerId, postCode |
| Fields inherited from interface com.bankframe.ejb.EEntity |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
AddressBMPBean()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
amend(String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
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. |
AddressPK |
ejbCreate(String ownerId,
String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
This method initialises a new instance of the Address entity. |
Enumeration |
ejbFindAll()
This method gets all instances of the Address entities. |
Enumeration |
ejbFindByCountry(String country)
This method gets all instance of the Address entity with the specified country value. |
Enumeration |
ejbFindByPostCode(String postCode)
This method finds all EJBs with the given post code. |
AddressPK |
ejbFindByPrimaryKey(AddressPK 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 ownerId,
String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
|
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.address.AddressBean |
|---|
toDataPacket |
| Methods inherited from class com.bankframe.examples.bo.address.AddressBean |
|---|
create, getAddressLine1, getAddressLine2, getAddressLine3, getAddressLine4, getCountry, getOwnerId, getPostCode |
| 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 AddressBMPBean()
| Method Detail |
|---|
public void amend(String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
throws ValidationException
amend in class AddressBeanaddressLine1 - addressLine2 - addressLine3 - addressLine4 - country - postCode -
ValidationException
public EPrimaryKey createPrimaryKey(DataPacket dp)
throws ProcessingErrorException
createPrimaryKey in interface EBMPEntitydp - the DataPacket containing the primary key data
ProcessingErrorException - if a processing error occurspublic void ejbActivate()
ejbActivate in interface EntityBean
public AddressPK ejbCreate(String ownerId,
String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
throws CreateException,
ValidationException,
ProcessingErrorException
ownerId - addressLine1 - addressLine2 - addressLine3 - addressLine4 - country - postCode -
CreateException
ProcessingErrorException
ValidationException
public Enumeration ejbFindAll()
throws FinderException,
ValidationException
FinderException
ValidationException
public Enumeration ejbFindByCountry(String country)
throws FinderException,
ValidationException
country - the country name to check for
FinderException
ValidationException
public Enumeration ejbFindByPostCode(String postCode)
throws FinderException,
ValidationException
postCode - the post code to check for
FinderException
ValidationException
public AddressPK ejbFindByPrimaryKey(AddressPK primaryKey)
throws FinderException,
ValidationException
primaryKey - the primary to check for
FinderException
ValidationExceptionpublic void ejbLoad()
ejbLoad in interface EntityBeanpublic void ejbPassivate()
ejbPassivate in interface EntityBean
public void ejbPostCreate(String ownerId,
String addressLine1,
String addressLine2,
String addressLine3,
String addressLine4,
String country,
String postCode)
ownerId - addressLine1 - addressLine2 - addressLine3 - addressLine4 - country - postCode - 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 containing the data 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 | |||||||||