|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A gift registry is a list of things that a customer would like to have purchased on their behalf. Items are removed from the Registries OrderLines and added to the collection of PurchasedOrderLines.
Primary Key = theory.smart.ebusiness.giftregistry.GiftRegistryPk
password
[GiftRegistry] <*>------> [String
]
purchasedOrderLine (List)
[GiftRegistry] <*>------> [theory.smart.ebusiness.giftregistry.PurchasedOrderLine
]
0..*
owner
[GiftRegistry] <>------> [theory.smart.ebusiness.customer.Customer
]
email (Map)
[GiftRegistry] <*>------> [theory.smart.axiom.contact.Email
]
0..*
GiftRegistryPk
,
GiftRegistryHome
,
GiftRegistryImpl
,
GiftRegistryValue
Method Summary | |
void |
addFirstPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Inserts the given purchasedOrderLine at the beginning of the purchasedOrderLine list. |
void |
addLastPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Appends the given purchasedOrderLine to the end of the purchasedOrderLine list. |
void |
addPurchasedOrderLine(int index,
PurchasedOrderLine purchasedOrderLine)
Inserts the specified purchasedOrderLine at the specified position in the purchasedOrderLine list. |
boolean |
addPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Appends the specified purchasedOrderLine to the end of the purchasedOrderLine list. |
boolean |
addPurchasedOrderLines(int index,
com.sun.java.util.collections.LinkedList purchasedOrderLines)
Inserts all of the purchasedOrderLines in the specified collection into this list, starting at the specified position. |
boolean |
addPurchasedOrderLines(com.sun.java.util.collections.LinkedList purchasedOrderLines)
Appends all of the purchasedOrderLines in the specified collection to the end of the purchasedOrderLine list, in the order that they are returned by the specified collection's iterator. |
boolean |
containsEmailKey(java.lang.String key)
Returns true if the email map contains a email for the specified key. |
boolean |
containsEmailValue(Email email)
Returns true if the email map maps one or more keys to the specified email. |
boolean |
containsPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Returns true if the purchasedOrderLine list contains the specified element. |
Email |
getEmailByKey(java.lang.String key)
Returns the email to which the email map maps the specified key. |
com.sun.java.util.collections.TreeMap |
getEmails()
Returns a copy all of the emails from the specified map to the email map. |
PurchasedOrderLine |
getFirstPurchasedOrderLine()
Returns the first purchasedOrderLine in the purchasedOrderLine list. |
GiftRegistryValue |
getGiftRegistryByValue()
Get all of GiftRegistry's attributes. |
PurchasedOrderLine |
getLastPurchasedOrderLine()
Returns the last purchasedOrderLine in the purchasedOrderLine list. |
int |
getNumberOfEmails()
Returns the number of key-value mappings in the email map. |
int |
getNumberOfPurchasedOrderLines()
Returns the number of purchasedOrderLines in the purchasedOrderLine list. |
Customer |
getOwner()
Get the remote object reference of owner |
java.lang.String |
getPassword()
Get the value of password |
PurchasedOrderLine |
getPurchasedOrderLine(int index)
Returns the purchasedOrderLine at the specified position in the purchasedOrderLine list. |
com.sun.java.util.collections.LinkedList |
getPurchasedOrderLines()
Returns all of the purchasedOrderLines in the purchasedOrderLine list. |
com.sun.java.util.collections.LinkedList |
getPurchasedOrderLines(int fromIndex,
int toIndex)
Returns a view of the portion of the purchasedOrderLine list between fromIndex, inclusive, and toIndex, exclusive. |
int |
indexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Returns the index in the purchasedOrderLine list of the first occurrence of the specified element, or -1 if the purchasedOrderLine list does not contain this element. |
boolean |
isEmailsEmpty()
Returns true if the email map contains no key-value mappings. |
boolean |
isPurchasedOrderLinesEmtpy()
Returns true if the purchasedOrderLine list contains no purchasedOrderLines. |
int |
lastIndexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Returns the index in the purchasedOrderLine list of the last occurrence of the specified element, or -1 if the purchasedOrderLine list does not contain this element. |
void |
putEmail(java.lang.String key,
Email email)
Associates the specified email with the specified key in the email map. |
void |
putEmails(com.sun.java.util.collections.TreeMap emails)
Copies all of the emails from the specified email map to this email map. |
PurchasedOrderLine |
recordPurchase(Customer customer,
OrderLine line)
This method is used to record purchases outside of this system. |
PurchasedOrderLine |
recordPurchase(Customer customer,
OrderLine line,
PackingList packingList)
This method is used to record purchases made using this system. |
void |
removeAllEmails()
Removes all emails from this email map. |
void |
removeAllPurchasedOrderLines()
Removes all of the purchasedOrderLines from the purchasedOrderLine list. |
Email |
removeEmailByKey(java.lang.String key)
Removes the email for this key from this email map if present. |
PurchasedOrderLine |
removeFirstPurchasedOrderLine()
Removes and returns the first purchasedOrderLine from the purchasedOrderLine list. |
PurchasedOrderLine |
removeLastPurchasedOrderLine()
Removes and returns the last purchasedOrderLine from the purchasedOrderLine list. |
PurchasedOrderLine |
removePurchasedOrderLine(int index)
Removes the purchasedOrderLine at the specified position in the purchasedOrderLine list. |
boolean |
removePurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
Removes the first occurrence of the specified purchasedOrderLine in the purchasedOrderLine list. |
void |
reversePurchase(int lineNo)
|
void |
setGiftRegistryByValue(GiftRegistryValue value)
Set all of GiftRegistry's attributes to the passed in value. |
void |
setOwner(Customer owner)
Set the remote object reference of owner |
void |
setPassword(java.lang.String password)
Set the value of password |
PurchasedOrderLine |
setPurchasedOrderLine(int index,
PurchasedOrderLine purchasedOrderLine)
Replaces the purchasedOrderLine at the specified position in the purchasedOrderLine list with the specified element. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public GiftRegistryValue getGiftRegistryByValue() throws java.rmi.RemoteException
public void setGiftRegistryByValue(GiftRegistryValue value) throws java.rmi.RemoteException
GiftRegistryValue
- the GiftRegistry 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 void addPurchasedOrderLine(int index, PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
index
- index at which the specified purchasedOrderLine is to be inserted.purchasedOrderLine
- purchasedOrderLine to be inserted.public boolean addPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
purchasedOrderLine
- purchasedOrderLine to be appended to the purchasedOrderLine list.public boolean addPurchasedOrderLines(int index, com.sun.java.util.collections.LinkedList purchasedOrderLines) throws java.rmi.RemoteException
index
- index at which to insert first element
from the specified collection.purchasedOrderLines
- purchasedOrderLines to be inserted into the purchasedOrderLine list.public boolean addPurchasedOrderLines(com.sun.java.util.collections.LinkedList purchasedOrderLines) throws java.rmi.RemoteException
purchasedOrderLines
- purchasedOrderLines to be inserted into the purchasedOrderLine list.public void addFirstPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
public void addLastPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
public boolean containsPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
purchasedOrderLine
- purchasedOrderLine whose presence in the purchasedOrderLine list is to be tested.public PurchasedOrderLine getPurchasedOrderLine(int index) throws java.rmi.RemoteException
index
- index of purchasedOrderLine to return.public com.sun.java.util.collections.LinkedList getPurchasedOrderLines(int fromIndex, int toIndex) throws java.rmi.RemoteException
fromIndex
- low endpoint (inclusive) of the subList.toKey
- high endpoint (exclusive) of the subList.public com.sun.java.util.collections.LinkedList getPurchasedOrderLines() throws java.rmi.RemoteException
public PurchasedOrderLine getFirstPurchasedOrderLine() throws java.rmi.RemoteException
public PurchasedOrderLine getLastPurchasedOrderLine() throws java.rmi.RemoteException
public int getNumberOfPurchasedOrderLines() throws java.rmi.RemoteException
public int indexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
purchasedOrderLine
- purchasedOrderLine to search for.public boolean isPurchasedOrderLinesEmtpy() throws java.rmi.RemoteException
public int lastIndexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
purchasedOrderLine
- purchasedOrderLine to search for.public void removeAllPurchasedOrderLines() throws java.rmi.RemoteException
public PurchasedOrderLine removePurchasedOrderLine(int index) throws java.rmi.RemoteException
index
- the index of the purchasedOrderLine to removed.public boolean removePurchasedOrderLine(PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
purchasedOrderLine
- purchasedOrderLine to be removed from the purchasedOrderLine list, if present.public PurchasedOrderLine removeFirstPurchasedOrderLine() throws java.rmi.RemoteException
public PurchasedOrderLine removeLastPurchasedOrderLine() throws java.rmi.RemoteException
public PurchasedOrderLine setPurchasedOrderLine(int index, PurchasedOrderLine purchasedOrderLine) throws java.rmi.RemoteException
index
- index of purchasedOrderLine to replace.purchasedOrderLine
- purchasedOrderLine to be stored at the specified position.public Customer getOwner() throws java.rmi.RemoteException
public void setOwner(Customer owner) throws java.rmi.RemoteException
owners
- owner to be addedpublic boolean containsEmailKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose presence in the email map is to be tested.public boolean containsEmailValue(Email email) throws java.rmi.RemoteException
email
- value of email whose presence in the email map is to be tested.public Email getEmailByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key whose associated email is to be returned.#containsKey(Object)
public com.sun.java.util.collections.TreeMap getEmails() throws java.rmi.RemoteException
emails
- a copy of the emails.public int getNumberOfEmails() throws java.rmi.RemoteException
public boolean isEmailsEmpty() throws java.rmi.RemoteException
public void putEmail(java.lang.String key, Email email) throws java.rmi.RemoteException
key
- key with which the specified email is to be associated.email
- email to be associated with the specified key.public void putEmails(com.sun.java.util.collections.TreeMap emails) throws java.rmi.RemoteException
email
- Emails to be stored in the email map.public void removeAllEmails() throws java.rmi.RemoteException
public Email removeEmailByKey(java.lang.String key) throws java.rmi.RemoteException
key
- key with which the specified email is associated.public PurchasedOrderLine recordPurchase(Customer customer, OrderLine line) throws java.rmi.RemoteException
public PurchasedOrderLine recordPurchase(Customer customer, OrderLine line, PackingList packingList) throws java.rmi.RemoteException
public void reversePurchase(int lineNo) throws java.rmi.RemoteException
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |