|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains the methods required to support the product business component.
Last modified $Date: 1999/10/04 15:31:30 $
Field Summary | |
static java.lang.String |
ANNOTATIONS
The annotations attribute. |
static java.lang.String |
CHILDREN
The children attribute. |
static java.lang.String |
CRT_CLASS
The concrete class implementing this. |
static java.lang.String |
IN_STOCK
The inStock attribute. |
static java.lang.String |
MANUFACTURER
The manufacturer attribute. |
static java.lang.String |
MANUFACTURER_CODE
The manufacturerCode attribute. |
static java.lang.String |
NAME
The name attribute. |
static java.lang.String |
PARENT
The parent attribute. |
static java.lang.String |
PRICE
The price attribute. |
Method Summary | |
void |
addAnnotation(Identifier id,
java.lang.String type,
AnnotationReference ann)
Adds the specified annotation to the list of annotations that describe this product. |
void |
addChild(Identifier id,
Product prd)
Adds the specified product to the list of this product's child products. |
com.sun.java.util.collections.Iterator |
annotations()
Provides a full iterator of all annotations describing this product. |
com.sun.java.util.collections.Iterator |
children()
Provides all of the children of this product. |
void |
create(Identifier id,
ManufacturerReference mfg,
java.lang.String mfgcode,
java.lang.String nom,
double prix)
Initializes a newly created product with the specified values. |
void |
create(Identifier id,
ManufacturerReference mfg,
java.lang.String mfgcode,
java.lang.String nom,
double prix,
ProductReference prnt)
Initializes a newly created product with the specified values. |
AnnotationReference |
getAnnotation(java.lang.String type,
java.util.Locale loc)
Provides the annotation of the specified audience type translated to the specified locale. |
ManufacturerReference |
getManufacturer()
Provides the manufacturer of this product. |
java.lang.String |
getManufacturerCode()
Provides the manufacturer's unique identifier for this product. |
java.lang.String |
getName(java.util.Locale loc)
Provides the name of this product translated for the specified locale. |
ProductReference |
getParent()
Provides the parent of this product or null if it
does not have a product. |
double |
getPrice()
Provides the basic price for this product. |
boolean |
isInStock()
Determines if this product is currently in stock. |
void |
removeAnnotation(Identifier id,
AnnotationReference ann)
Removes the specified annotation from this product's list of annotations. |
void |
removeChild(Identifier id,
Product prd)
Removes the specified child product from this product's list of children. |
void |
removeParent(Identifier id,
Product prd)
Sets the product to be orphaned if the specified product matches this product's parent. |
Methods inherited from interface com.imaginary.lwp.Entity |
getLastUpdateID,
getLastUpdateTime,
getObjectID,
getReference,
remove |
Field Detail |
public static final java.lang.String ANNOTATIONS
public static final java.lang.String CHILDREN
public static final java.lang.String CRT_CLASS
public static final java.lang.String IN_STOCK
public static final java.lang.String MANUFACTURER
public static final java.lang.String MANUFACTURER_CODE
public static final java.lang.String NAME
public static final java.lang.String PARENT
public static final java.lang.String PRICE
Method Detail |
public void addAnnotation(Identifier id, java.lang.String type, AnnotationReference ann) throws PersistenceException, java.rmi.RemoteException
id
- the client identifieraud
- the audience type for this annotationann
- the annotation to be addedpublic void addChild(Identifier id, Product prd) throws IllegalProductRelationException, PersistenceException, java.rmi.RemoteException
id
- the client identifierprd
- the product to be addedpublic com.sun.java.util.collections.Iterator annotations() throws java.rmi.RemoteException
public com.sun.java.util.collections.Iterator children() throws java.rmi.RemoteException
public void create(Identifier id, ManufacturerReference mfg, java.lang.String mfgcode, java.lang.String nom, double prix) throws PersistenceException, java.rmi.RemoteException
id
- the client identifiermfg
- the manufacturer of the productmfgcode
- the manufacturer's unique identifiernom
- the name of the productprix
- the product's pricepublic void create(Identifier id, ManufacturerReference mfg, java.lang.String mfgcode, java.lang.String nom, double prix, ProductReference prnt) throws PersistenceException, java.rmi.RemoteException
id
- the client identifiermfg
- the manufacturer of the productmfgcode
- the manufacturer's unique identifiernom
- the name of the productprix
- the product's priceprnt
- the parent of this productpublic AnnotationReference getAnnotation(java.lang.String type, java.util.Locale loc) throws java.rmi.RemoteException
aud
- the audience type of this annotationloc
- the locale of the desired translationpublic ManufacturerReference getManufacturer() throws java.rmi.RemoteException
public java.lang.String getManufacturerCode() throws java.rmi.RemoteException
public java.lang.String getName(java.util.Locale loc) throws java.rmi.RemoteException
loc
- the locale of the desired translationpublic ProductReference getParent() throws java.rmi.RemoteException
null
if it
does not have a product.public double getPrice() throws java.rmi.RemoteException
public boolean isInStock() throws java.rmi.RemoteException
public void removeAnnotation(Identifier id, AnnotationReference ann) throws PersistenceException, java.rmi.RemoteException
id
- the client identifier for the transactionann
- the annotation to be removedpublic void removeChild(Identifier id, Product prd) throws PersistenceException, java.rmi.RemoteException
id
- the client identifier for the transactionprd
- the child to be removedpublic void removeParent(Identifier id, Product prd) throws PersistenceException, java.rmi.RemoteException
null
parent.id
- the client identifier for the transactionprd
- the parent of this product
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |