|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.examples.bo.customer.CustomerBean com.bankframe.examples.bo.impl.customer.CustomerBean com.bankframe.examples.bo.impl.customer.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(java.lang.String title,
java.lang.String firstName,
java.lang.String lastName)
This method amends the attributes of the customer entity. |
Address |
amendAddress(java.lang.String addressLine1,
java.lang.String addressLine2,
java.lang.String addressLine3,
java.lang.String addressLine4,
java.lang.String country,
java.lang.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(java.lang.String ownerId,
java.lang.String title,
java.lang.String firstName,
java.lang.String lastName)
This method initialises a new instance of the customer entity. |
java.util.Enumeration |
ejbFindAll()
This method gets all instances of this EJB |
java.util.Enumeration |
ejbFindByFirstName(java.lang.String firstName)
This method get all instance of this EJB with the given first name |
java.util.Enumeration |
ejbFindByLastName(java.lang.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. |
java.util.Enumeration |
ejbFindByTitle(java.lang.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(java.lang.String ownerId,
java.lang.String title,
java.lang.String firstName,
java.lang.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. |
java.util.Vector |
getDependentEntities()
This method gets all entity beans that depend on this EJB. |
java.lang.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(javax.ejb.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(java.lang.String title, java.lang.String firstName, java.lang.String lastName) throws ValidationException
amend
in class CustomerBean
title
- firstName
- lastName
-
ValidationException
public Address amendAddress(java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String addressLine3, java.lang.String addressLine4, java.lang.String country, java.lang.String postCode) throws ProcessingErrorException, ValidationException, java.rmi.RemoteException
amendAddress
in class CustomerBean
addressLine1
- addressLine2
- addressLine3
- addressLine4
- country
- postCode
-
ProcessingErrorException
java.rmi.RemoteException
ValidationException
public EPrimaryKey createPrimaryKey(DataPacket dp) throws ProcessingErrorException
createPrimaryKey
in interface EBMPEntity
dp
- the DataPacket to create the key from
ProcessingErrorException
- if processing fails.public void ejbActivate()
ejbActivate
in interface javax.ejb.EntityBean
public CustomerPK ejbCreate(java.lang.String ownerId, java.lang.String title, java.lang.String firstName, java.lang.String lastName) throws javax.ejb.CreateException, ValidationException, ProcessingErrorException
ownerId
- title
- firstName
- lastName
-
javax.ejb.CreateException
ProcessingErrorException
ValidationException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, ValidationException
javax.ejb.FinderException
ValidationException
public java.util.Enumeration ejbFindByFirstName(java.lang.String firstName) throws javax.ejb.FinderException, ValidationException
javax.ejb.FinderException
ValidationException
public java.util.Enumeration ejbFindByLastName(java.lang.String lastName) throws javax.ejb.FinderException, ValidationException
javax.ejb.FinderException
ValidationException
public CustomerPK ejbFindByPrimaryKey(CustomerPK primaryKey) throws javax.ejb.FinderException, ValidationException
javax.ejb.FinderException
ValidationException
public java.util.Enumeration ejbFindByTitle(java.lang.String title) throws javax.ejb.FinderException, ValidationException
javax.ejb.FinderException
ValidationException
public void ejbLoad()
ejbLoad
in interface javax.ejb.EntityBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.EntityBean
public void ejbPostCreate(java.lang.String ownerId, java.lang.String title, java.lang.String firstName, java.lang.String lastName)
public void ejbRemove()
ejbRemove
in interface javax.ejb.EntityBean
public void ejbStore()
ejbStore
in interface javax.ejb.EntityBean
public java.util.Vector getDependentEntities() throws ProcessingErrorException, java.rmi.RemoteException
getDependentEntities
in interface EBMPMasterEntity
ProcessingErrorException
java.rmi.RemoteException
public java.lang.String getEntityName()
getEntityName
in interface EBMPEntity
public EPersister getPersister()
getPersister
in interface EBMPEntity
public EPrimaryKey getPrimaryKey()
getPrimaryKey
in interface EBMPEntity
public void populate(DataPacket dp)
populate
in interface EBMPEntity
dp
- The DataPacket to populate withpublic void setEntityContext(javax.ejb.EntityContext newCtx)
setEntityContext
in interface javax.ejb.EntityBean
public void unsetEntityContext()
unsetEntityContext
in interface javax.ejb.EntityBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |