|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This represents a product or service that has a value. It is identified by a combination of the supplier, part number and, a version. Examples of a supplier are the manufacturer of a product, the publisher of a book, or the offerer of a course. This entity gets its price from the ItemPricingPolicy. Also, Items have a set of qualities, used to search and find items based on weighted qualities.
Primary Key = theory.smart.ebusiness.item.ItemPk
version
[Item] <*>------> [String
] (Primary Key)
identifier
[Item] <*>------> [String
] (Primary Key)
supplier
[Item] <*>------> [String
] (Primary Key)
description
[Item] <*>------> [String
]
price
[Item] <*>------> [theory.smart.axiom.units.Price
]
quality (List)
[Item] <*>------> [theory.smart.axiom.units.Quality
]
0..*
ItemPk
,
ItemHome
,
ItemImpl
,
ItemValue
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. |
Price |
calculatePrice(ItemPriceCalculationPolicy policy,
Quantity qty,
Customer customer)
Calculate the price of the item using the specified ItemPriceCalculationPolicy |
Price |
calculatePrice(Quantity qty,
Customer customer)
Calculate the price of the item using the ItemPriceCalculationPolicy. |
boolean |
containsQuality(Quality quality)
Returns true if the quality list contains the specified element. |
ItemPriceCalculationPolicy |
getDefaultItemPriceCalculationPolicy()
|
java.lang.String |
getDescription()
Get the value of description |
Quality |
getFirstQuality()
Returns the first quality in the quality list. |
java.lang.String |
getIdentifier()
|
ItemValue |
getItemByValue()
Get all of Item's attributes. |
Quality |
getLastQuality()
Returns the last quality in the quality list. |
int |
getNumberOfQualities()
Returns the number of qualities in the quality list. |
Price |
getPrice()
Get the value of price |
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. |
java.lang.String |
getSupplier()
|
java.lang.String |
getVersion()
|
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 |
setDefaultItemPriceCalculationPolicy(ItemPriceCalculationPolicy policy)
Set a default price calculation policy for a particular item instance. |
void |
setDescription(java.lang.String description)
Set the value of description |
void |
setItemByValue(ItemValue value)
Set all of Item's attributes to the passed in value. |
void |
setPrice(Price price)
Set the value of price |
Quality |
setQuality(int index,
Quality quality)
Replaces the quality at the specified position in the quality list with the specified element. |
Methods inherited from interface theory.smart.foundation.ConfigurableEntity |
setSuccessorAtClassLevel,
setSuccessorAtInstanceLevel |
Methods inherited from interface theory.smart.foundation.Configurable |
addProperty,
getProperty,
removeProperty |
Methods inherited from interface theory.smart.foundation.BusinessPolicyManager |
addBusinessPolicy,
getBusinessPolicy,
removeBusinessPolicy |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public ItemValue getItemByValue() throws java.rmi.RemoteException
public void setItemByValue(ItemValue value) throws java.rmi.RemoteException
ItemValue
- the Item value objectpublic java.lang.String getSupplier() throws java.rmi.RemoteException
public java.lang.String getIdentifier() throws java.rmi.RemoteException
public java.lang.String getVersion() throws java.rmi.RemoteException
public java.lang.String getDescription() throws java.rmi.RemoteException
public void setDescription(java.lang.String description) throws java.rmi.RemoteException
descriptions
- description to be addedpublic Price getPrice() throws java.rmi.RemoteException
public void setPrice(Price price) throws java.rmi.RemoteException
prices
- price to be addedpublic void addQuality(int index, Quality quality) throws java.rmi.RemoteException
index
- index at which the specified quality is to be inserted.quality
- quality to be inserted.public boolean addQuality(Quality quality) throws java.rmi.RemoteException
quality
- quality to be appended to the quality list.public boolean addQualities(int index, com.sun.java.util.collections.LinkedList qualities) throws java.rmi.RemoteException
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) throws java.rmi.RemoteException
qualities
- qualities to be inserted into the quality list.public void addFirstQuality(Quality quality) throws java.rmi.RemoteException
public void addLastQuality(Quality quality) throws java.rmi.RemoteException
public boolean containsQuality(Quality quality) throws java.rmi.RemoteException
quality
- quality whose presence in the quality list is to be tested.public Quality getQuality(int index) throws java.rmi.RemoteException
index
- index of quality to return.public com.sun.java.util.collections.LinkedList getQualities(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 getQualities() throws java.rmi.RemoteException
public Quality getFirstQuality() throws java.rmi.RemoteException
public Quality getLastQuality() throws java.rmi.RemoteException
public int getNumberOfQualities() throws java.rmi.RemoteException
public int indexOfQuality(Quality quality) throws java.rmi.RemoteException
quality
- quality to search for.public boolean isQualitiesEmtpy() throws java.rmi.RemoteException
public int lastIndexOfQuality(Quality quality) throws java.rmi.RemoteException
quality
- quality to search for.public void removeAllQualities() throws java.rmi.RemoteException
public Quality removeQuality(int index) throws java.rmi.RemoteException
index
- the index of the quality to removed.public boolean removeQuality(Quality quality) throws java.rmi.RemoteException
quality
- quality to be removed from the quality list, if present.public Quality removeFirstQuality() throws java.rmi.RemoteException
public Quality removeLastQuality() throws java.rmi.RemoteException
public Quality setQuality(int index, Quality quality) throws java.rmi.RemoteException
index
- index of quality to replace.quality
- quality to be stored at the specified position.public Price calculatePrice(Quantity qty, Customer customer) throws java.rmi.RemoteException
public Price calculatePrice(ItemPriceCalculationPolicy policy, Quantity qty, Customer customer) throws java.rmi.RemoteException
public void setDefaultItemPriceCalculationPolicy(ItemPriceCalculationPolicy policy) throws java.rmi.RemoteException
public ItemPriceCalculationPolicy getDefaultItemPriceCalculationPolicy() throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |