|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Stores the information required to do business with a customer. It inherits most attributes from the Person object and adds the ability to authenticate and to bill for product via a credit card.
Primary Key = theory.smart.ebusiness.customer.CustomerPk
password
[Customer] <*>------> [String
]
creditCard (Map)
[Customer] <*>------> [theory.smart.axiom.contact.CreditCard
]
0..*
CustomerPk
,
CustomerHome
,
CustomerImpl
,
CustomerValue
Method Summary | |
boolean |
authenticate(java.lang.String password)
Verify that the password specified matches the customers password. |
boolean |
containsCreditCardKey(java.lang.String key)
Returns true if the creditCard map contains a creditCard for the specified key. |
boolean |
containsCreditCardValue(CreditCard creditCard)
Returns true if the creditCard map maps one or more keys to the specified creditCard. |
CreditCard |
getCreditCardByKey(java.lang.String key)
Returns the creditCard to which the creditCard map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getCreditCards()
Returns a copy all of the creditCards from the specified map to the creditCard map. |
CustomerValue |
getCustomerByValue()
Get all of Customer's attributes. |
int |
getNumberOfCreditCards()
Returns the number of key-value mappings in the creditCard map. |
java.lang.String |
getPassword()
Get the value of password |
boolean |
isCreditCardsEmpty()
Returns true if the creditCard map contains no key-value mappings. |
void |
putCreditCard(java.lang.String key,
CreditCard creditCard)
Associates the specified creditCard with the specified key in the creditCard map. |
void |
putCreditCards(com.sun.java.util.collections.TreeMap creditCards)
Copies all of the creditCards from the specified creditCard map to this creditCard map. |
void |
removeAllCreditCards()
Removes all creditCards from this creditCard map. |
CreditCard |
removeCreditCardByKey(java.lang.String key)
Removes the creditCard for this key from this creditCard map if present. |
void |
setCustomerByValue(CustomerValue value)
Set all of Customer's attributes to the passed in value. |
void |
setPassword(java.lang.String password)
Set the value of password |
Methods inherited from interface theory.smart.axiom.contact.Person |
getDob,
getFirstName,
getLastName,
getMaritalStatus,
getMiddleName,
getMotherMaidenName,
getPersonByValue,
getSsn,
getSuffix,
getTitle,
setDob,
setFirstName,
setLastName,
setMaritalStatus,
setMiddleName,
setMotherMaidenName,
setPersonByValue,
setSsn,
setSuffix,
setTitle |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public CustomerValue getCustomerByValue() throws java.rmi.RemoteException
public void setCustomerByValue(CustomerValue value) throws java.rmi.RemoteException
CustomerValue
- the Customer value objectpublic java.lang.String getPassword() throws java.rmi.RemoteException
public void setPassword(java.lang.String password) throws java.rmi.RemoteException
passwords
- password to be addedpublic boolean containsCreditCardKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the creditCard map is to be tested.public boolean containsCreditCardValue(CreditCard creditCard) throws java.rmi.RemoteException
creditCard
- value of creditCard whose presence in the creditCard map is to be tested.public CreditCard getCreditCardByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated creditCard is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getCreditCards() throws java.rmi.RemoteException
creditCards
- a copy of the creditCards.public int getNumberOfCreditCards() throws java.rmi.RemoteException
public boolean isCreditCardsEmpty() throws java.rmi.RemoteException
public void putCreditCard(java.lang.String key, CreditCard creditCard) throws java.rmi.RemoteException
key
- key with which the specified creditCard is to be associated.creditCard
- creditCard to be associated with the specified key.public void putCreditCards(com.sun.java.util.collections.TreeMap creditCards) throws java.rmi.RemoteException
creditCard
- CreditCards to be stored in the creditCard map.public void removeAllCreditCards() throws java.rmi.RemoteException
public CreditCard removeCreditCardByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified creditCard is associated.public boolean authenticate(java.lang.String password) throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |