|
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.order.OrderImpl | +--theory.smart.ebusiness.giftregistry.GiftRegistryImpl
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
GiftRegistry
,
GiftRegistryHome
,
GiftRegistryValue
, Serialized FormField Summary | |
com.sun.java.util.collections.TreeMap |
emails
email (Map) [GiftRegistry] <*>------> [ theory.smart.axiom.contact.Email ]
0..*
|
SmartHandle |
owner
owner [GiftRegistry] <>------> [ theory.smart.ebusiness.customer.Customer ]
|
java.lang.String |
password
password [GiftRegistry] <*>------> [ String ]
|
com.sun.java.util.collections.LinkedList |
purchasedOrderLines
purchasedOrderLine (List) [GiftRegistry] <*>------> [ theory.smart.ebusiness.giftregistry.PurchasedOrderLine ]
0..*
|
Fields inherited from class theory.smart.ebusiness.order.OrderImpl |
customer,
key,
orderLines,
status,
statusWorkflow |
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
GiftRegistryImpl()
|
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. |
void |
ejbActivate()
ejbActivate method. |
GiftRegistryPk |
ejbCreate(GiftRegistryPk giftRegistryPk)
|
java.util.Enumeration |
ejbFindAll()
|
GiftRegistryPk |
ejbFindByPrimaryKey(GiftRegistryPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(GiftRegistryPk giftRegistryPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
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 |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
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. |
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 password
password
[GiftRegistry] <*>------> [String
]
public com.sun.java.util.collections.LinkedList purchasedOrderLines
purchasedOrderLine (List)
[GiftRegistry] <*>------> [theory.smart.ebusiness.giftregistry.PurchasedOrderLine
]
0..*
public SmartHandle owner
owner
[GiftRegistry] <>------> [theory.smart.ebusiness.customer.Customer
]
public com.sun.java.util.collections.TreeMap emails
email (Map)
[GiftRegistry] <*>------> [theory.smart.axiom.contact.Email
]
0..*
Constructor Detail |
public GiftRegistryImpl() throws javax.ejb.CreateException
Method Detail |
public GiftRegistryValue getGiftRegistryByValue() throws java.rmi.RemoteException
public void setGiftRegistryByValue(GiftRegistryValue value) throws java.rmi.RemoteException
GiftRegistryValue
- the GiftRegistry value objectpublic GiftRegistryPk ejbCreate(GiftRegistryPk giftRegistryPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(GiftRegistryPk giftRegistryPk) 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 GiftRegistryPk ejbFindByPrimaryKey(GiftRegistryPk 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 void addPurchasedOrderLine(int index, PurchasedOrderLine purchasedOrderLine)
index
- index at which the specified purchasedOrderLine is to be inserted.purchasedOrderLine
- purchasedOrderLine to be inserted.public boolean addPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
purchasedOrderLine
- purchasedOrderLine to be appended to the purchasedOrderLine list.public boolean addPurchasedOrderLines(int index, com.sun.java.util.collections.LinkedList purchasedOrderLines)
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)
purchasedOrderLines
- purchasedOrderLines to be inserted into the purchasedOrderLine list.public void addFirstPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
public void addLastPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
public boolean containsPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
purchasedOrderLine
- purchasedOrderLine whose presence in the purchasedOrderLine list is to be tested.public PurchasedOrderLine getPurchasedOrderLine(int index)
index
- index of purchasedOrderLine to return.public com.sun.java.util.collections.LinkedList getPurchasedOrderLines(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 getPurchasedOrderLines()
public PurchasedOrderLine getFirstPurchasedOrderLine()
public PurchasedOrderLine getLastPurchasedOrderLine()
public int getNumberOfPurchasedOrderLines()
public int indexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
purchasedOrderLine
- purchasedOrderLine to search for.public boolean isPurchasedOrderLinesEmtpy()
public int lastIndexOfPurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
purchasedOrderLine
- purchasedOrderLine to search for.public void removeAllPurchasedOrderLines()
public PurchasedOrderLine removePurchasedOrderLine(int index)
index
- the index of the purchasedOrderLine to removed.public boolean removePurchasedOrderLine(PurchasedOrderLine purchasedOrderLine)
purchasedOrderLine
- purchasedOrderLine to be removed from the purchasedOrderLine list, if present.public PurchasedOrderLine removeFirstPurchasedOrderLine()
public PurchasedOrderLine removeLastPurchasedOrderLine()
public PurchasedOrderLine setPurchasedOrderLine(int index, PurchasedOrderLine purchasedOrderLine)
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 |