|
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.ebusiness.shoppingadvisor.CustomerProfileImpl
This class stores a list of qualities desired by a particular customer
Primary Key = theory.smart.ebusiness.shoppingadvisor.CustomerProfilePk
CustomerProfile
,
CustomerProfileHome
,
CustomerProfileValue
, Serialized FormField Summary | |
SmartHandle |
customer
customer [CustomerProfile] <>------> [ theory.smart.ebusiness.customer.Customer ]
|
java.lang.String |
customerKey
customerKey [CustomerProfile] <*>------> [ String ] (Primary Key)
|
com.sun.java.util.collections.LinkedList |
qualities
quality (List) [CustomerProfile] <*>------> [ theory.smart.axiom.units.Quality ]
0..*
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
CustomerProfileImpl()
|
Method Summary | |
void |
addFirstQuality(Quality quality)
Inserts the given quality at the beginning of the quality list. |
void |
addLastQuality(Quality quality)
Appends the given quality to the end of the quality list. |
boolean |
addQualities(int index,
com.sun.java.util.collections.LinkedList qualities)
Inserts all of the qualities in the specified collection into this list, starting at the specified position. |
boolean |
addQualities(com.sun.java.util.collections.LinkedList qualities)
Appends all of the qualities in the specified collection to the end of the quality list, in the order that they are returned by the specified collection's iterator. |
void |
addQuality(int index,
Quality quality)
Inserts the specified quality at the specified position in the quality list. |
boolean |
addQuality(Quality quality)
Appends the specified quality to the end of the quality list. |
void |
applyItem(Item item,
double weight)
Average in the qualties of this item into the customers profile. |
void |
applyQualities(com.sun.java.util.collections.Collection qualities,
double weight)
Apply a list of qualities to the customers profile. |
void |
applyQuality(Quality quality,
double weight)
Apply a quality to the customers profile. |
boolean |
containsQuality(Quality quality)
Returns true if the quality list contains the specified element. |
void |
ejbActivate()
ejbActivate method. |
CustomerProfilePk |
ejbCreate(CustomerProfilePk customerProfilePk)
|
java.util.Enumeration |
ejbFindAll()
|
CustomerProfilePk |
ejbFindByPrimaryKey(CustomerProfilePk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(CustomerProfilePk customerProfilePk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
Customer |
getCustomer()
Get the remote object reference of customer |
java.lang.String |
getCustomerKey()
|
CustomerProfileValue |
getCustomerProfileByValue()
Get all of CustomerProfile's attributes. |
Quality |
getFirstQuality()
Returns the first quality in the quality list. |
Quality |
getLastQuality()
Returns the last quality in the quality list. |
int |
getNumberOfQualities()
Returns the number of qualities in the quality list. |
com.sun.java.util.collections.LinkedList |
getQualities()
Returns all of the qualities in the quality list. |
com.sun.java.util.collections.LinkedList |
getQualities(int fromIndex,
int toIndex)
Returns a view of the portion of the quality list between fromIndex, inclusive, and toIndex, exclusive. |
Quality |
getQuality(int index)
Returns the quality at the specified position in the quality list. |
int |
indexOfQuality(Quality quality)
Returns the index in the quality list of the first occurrence of the specified element, or -1 if the quality list does not contain this element. |
boolean |
isQualitiesEmtpy()
Returns true if the quality list contains no qualities. |
int |
lastIndexOfQuality(Quality quality)
Returns the index in the quality list of the last occurrence of the specified element, or -1 if the quality list does not contain this element. |
void |
removeAllQualities()
Removes all of the qualities from the quality list. |
Quality |
removeFirstQuality()
Removes and returns the first quality from the quality list. |
Quality |
removeLastQuality()
Removes and returns the last quality from the quality list. |
Quality |
removeQuality(int index)
Removes the quality at the specified position in the quality list. |
boolean |
removeQuality(Quality quality)
Removes the first occurrence of the specified quality in the quality list. |
void |
setCustomer(Customer customer)
Set the remote object reference of customer |
void |
setCustomerProfileByValue(CustomerProfileValue value)
Set all of CustomerProfile's attributes to the passed in value. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
Quality |
setQuality(int index,
Quality quality)
Replaces the quality at the specified position in the quality list with the specified element. |
void |
unsetEntityContext()
unsetEntityContext method. |
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 customerKey
customerKey
[CustomerProfile] <*>------> [String
] (Primary Key)
public com.sun.java.util.collections.LinkedList qualities
quality (List)
[CustomerProfile] <*>------> [theory.smart.axiom.units.Quality
]
0..*
public SmartHandle customer
customer
[CustomerProfile] <>------> [theory.smart.ebusiness.customer.Customer
]
Constructor Detail |
public CustomerProfileImpl() throws javax.ejb.CreateException
Method Detail |
public CustomerProfileValue getCustomerProfileByValue() throws java.rmi.RemoteException
public void setCustomerProfileByValue(CustomerProfileValue value) throws java.rmi.RemoteException
CustomerProfileValue
- the CustomerProfile value objectpublic CustomerProfilePk ejbCreate(CustomerProfilePk customerProfilePk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(CustomerProfilePk customerProfilePk) 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 CustomerProfilePk ejbFindByPrimaryKey(CustomerProfilePk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getCustomerKey() throws java.rmi.RemoteException
public void addQuality(int index, Quality quality)
index
- index at which the specified quality is to be inserted.quality
- quality to be inserted.public boolean addQuality(Quality quality)
quality
- quality to be appended to the quality list.public boolean addQualities(int index, com.sun.java.util.collections.LinkedList qualities)
index
- index at which to insert first element
from the specified collection.qualities
- qualities to be inserted into the quality list.public boolean addQualities(com.sun.java.util.collections.LinkedList qualities)
qualities
- qualities to be inserted into the quality list.public void addFirstQuality(Quality quality)
public void addLastQuality(Quality quality)
public boolean containsQuality(Quality quality)
quality
- quality whose presence in the quality list is to be tested.public Quality getQuality(int index)
index
- index of quality to return.public com.sun.java.util.collections.LinkedList getQualities(int fromIndex, int toIndex)
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.LinkedList getQualities()
public Quality getFirstQuality()
public Quality getLastQuality()
public int getNumberOfQualities()
public int indexOfQuality(Quality quality)
quality
- quality to search for.public boolean isQualitiesEmtpy()
public int lastIndexOfQuality(Quality quality)
quality
- quality to search for.public void removeAllQualities()
public Quality removeQuality(int index)
index
- the index of the quality to removed.public boolean removeQuality(Quality quality)
quality
- quality to be removed from the quality list, if present.public Quality removeFirstQuality()
public Quality removeLastQuality()
public Quality setQuality(int index, Quality quality)
index
- index of quality to replace.quality
- quality to be stored at the specified position.public Customer getCustomer() throws java.rmi.RemoteException
public void setCustomer(Customer customer) throws java.rmi.RemoteException
customers
- customer to be addedpublic void applyItem(Item item, double weight) throws java.rmi.RemoteException
public void applyQuality(Quality quality, double weight) throws java.rmi.RemoteException
public void applyQualities(com.sun.java.util.collections.Collection qualities, double weight) throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |