|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.EntityImpl | +--theory.smart.axiom.contact.StakeholderImpl | +--theory.smart.axiom.contact.PersonImpl | +--theory.smart.ebusiness.customer.CustomerImpl
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
Customer
,
CustomerHome
,
CustomerValue
, Serialized FormField Summary | |
com.sun.java.util.collections.TreeMap |
creditCards
creditCard (Map) [Customer] <*>------> [ theory.smart.axiom.contact.CreditCard ]
0..*
|
java.lang.String |
password
password [Customer] <*>------> [ String ]
|
Fields inherited from class theory.smart.axiom.contact.PersonImpl |
dob,
firstName,
lastName,
maritalStatus,
middleName,
motherMaidenName,
ssn,
suffix,
title |
Fields inherited from class theory.smart.axiom.contact.StakeholderImpl |
addresses,
description,
emails,
faxes,
identifier,
phones,
primaryName,
urls |
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
CustomerImpl()
|
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. |
void |
ejbActivate()
ejbActivate method. |
CustomerPk |
ejbCreate(CustomerPk customerPk)
|
java.util.Enumeration |
ejbFindAll()
|
CustomerPk |
ejbFindByPrimaryKey(CustomerPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(CustomerPk customerPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
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 |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setPassword(java.lang.String password)
Set the value of password |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.axiom.contact.PersonImpl |
ejbCreate,
ejbFindByPrimaryKey,
ejbPostCreate,
getDob,
getFirstName,
getLastName,
getMaritalStatus,
getMiddleName,
getMotherMaidenName,
getPersonByValue,
getSsn,
getSuffix,
getTitle,
setDob,
setFirstName,
setLastName,
setMaritalStatus,
setMiddleName,
setMotherMaidenName,
setPersonByValue,
setSsn,
setSuffix,
setTitle |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String password
password
[Customer] <*>------> [String
]
public com.sun.java.util.collections.TreeMap creditCards
creditCard (Map)
[Customer] <*>------> [theory.smart.axiom.contact.CreditCard
]
0..*
Constructor Detail |
public CustomerImpl() throws javax.ejb.CreateException
Method Detail |
public CustomerValue getCustomerByValue() throws java.rmi.RemoteException
public void setCustomerByValue(CustomerValue value) throws java.rmi.RemoteException
CustomerValue
- the Customer value objectpublic CustomerPk ejbCreate(CustomerPk customerPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(CustomerPk customerPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public CustomerPk ejbFindByPrimaryKey(CustomerPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getPassword() throws java.rmi.RemoteException
public void setPassword(java.lang.String password) throws java.rmi.RemoteException
password
- 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 |