| java.lang.Object org.objectweb.jonas.stests.appli.CustomerEC2R
CustomerEC2R | abstract public class CustomerEC2R implements javax.ejb.EntityBean(Code) | | |
Method Summary | |
public void | ejbActivate() | public String | ejbCreate(Integer custID, String fN, String lN, String phone) Create a new Customer with minimal information. | public String | ejbCreate(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit) | public void | ejbLoad() | public void | ejbPassivate() | public void | ejbPostCreate(Integer custID, String fN, String lN, String phone) | public void | ejbPostCreate(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit) | public void | ejbRemove() | public void | ejbStore() | abstract public String | getAddressLine1() | abstract public String | getAddressLine2() | abstract public float | getBalance() | abstract public String | getCity() | abstract public float | getCreditLimit() | abstract public Integer | getCustomerID() | abstract public String | getFirstName() | abstract public String | getLastName() | abstract public String | getMiddleInitials() | abstract public String | getPhone() | abstract public String | getState() | abstract public float | getYearToDateBalance() | abstract public String | getZip() | abstract public void | setAddressLine1(String line) | abstract public void | setAddressLine2(String line) | abstract public void | setBalance(float balance) | abstract public void | setCity(String city) | abstract public void | setCreditLimit(float limit) | abstract public void | setCustomerID(Integer id) | public void | setEntityContext(javax.ejb.EntityContext ctx) | abstract public void | setFirstName(String fn) | abstract public void | setLastName(String ln) | abstract public void | setMiddleInitials(String mi) | abstract public void | setPhone(String phone) | abstract public void | setState(String state) | abstract public void | setYearToDateBalance(float ytdBalance) | abstract public void | setZip(String zip) | public void | unsetEntityContext() | public void | updateBalance(float orderAmount) Update the balance and year to date balance with the total amount from an order. |
ejbContext | javax.ejb.EntityContext ejbContext(Code) | | |
ejbActivate | public void ejbActivate()(Code) | | |
ejbCreate | public String ejbCreate(Integer custID, String fN, String lN, String phone) throws javax.ejb.CreateException(Code) | | Create a new Customer with minimal information.
Parameters: id - Customer ID for the customer being created, must be unique Parameters: fN - First name of the customer Parameters: lN - Last name of the customer Parameters: phone - Phone number of the customer Customer exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
ejbCreate | public String ejbCreate(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit) throws javax.ejb.CreateException(Code) | | Create a new Customer with all parameters, except balances which will automatically
be initialized to zero
Parameters: id - Customer ID for the customer being created, must be unique Parameters: fN - First name of the customer Parameters: lN - Last name of the customer Parameters: inits - Middle initials of the customer Parameters: phone - Phone number of the customer Parameters: addr1 - First address line of the customer Parameters: addr2 - Second address line of the customer Parameters: city - City of the customer's mailing address Parameters: state - State of the customer's mailing address Parameters: zip - Zip code of the customer's mailing address Parameters: creditLimit - Credit limit allowed for this cusomter Customer exception: javax.ejb.CreateException - Creation Exception exception: java.rmi.RemoteException - Remote Exception |
ejbLoad | public void ejbLoad()(Code) | | |
ejbPassivate | public void ejbPassivate()(Code) | | |
ejbPostCreate | public void ejbPostCreate(Integer Id, String fN, String lN, String inits, String addr1, String addr2, String city, String state, String zip, String phone, float creditLimit)(Code) | | |
ejbRemove | public void ejbRemove() throws javax.ejb.RemoveException(Code) | | |
ejbStore | public void ejbStore()(Code) | | |
getAddressLine1 | abstract public String getAddressLine1()(Code) | | |
getAddressLine2 | abstract public String getAddressLine2()(Code) | | |
getBalance | abstract public float getBalance()(Code) | | |
getCreditLimit | abstract public float getCreditLimit()(Code) | | |
getMiddleInitials | abstract public String getMiddleInitials()(Code) | | |
getYearToDateBalance | abstract public float getYearToDateBalance()(Code) | | |
setAddressLine1 | abstract public void setAddressLine1(String line)(Code) | | |
setAddressLine2 | abstract public void setAddressLine2(String line)(Code) | | |
setBalance | abstract public void setBalance(float balance)(Code) | | |
setCreditLimit | abstract public void setCreditLimit(float limit)(Code) | | |
setCustomerID | abstract public void setCustomerID(Integer id)(Code) | | |
setEntityContext | public void setEntityContext(javax.ejb.EntityContext ctx)(Code) | | |
setFirstName | abstract public void setFirstName(String fn)(Code) | | |
setLastName | abstract public void setLastName(String ln)(Code) | | |
setMiddleInitials | abstract public void setMiddleInitials(String mi)(Code) | | |
setYearToDateBalance | abstract public void setYearToDateBalance(float ytdBalance)(Code) | | |
unsetEntityContext | public void unsetEntityContext()(Code) | | |
updateBalance | public void updateBalance(float orderAmount)(Code) | | Update the balance and year to date balance with the total amount from an order.
Parameters: orderAmount - Order amount to update the balances with (Mandatory) void exception: java.rmi.RemoteException - Remote exception |
|
|