|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.imaginary.lwp.BaseReference | +--com.jwpepper.inv.ProductReference
Client delegator for the product business component. This class serves
as a client's primary interface into the product business component
and performs such tedious tasks as data caching and distributed
redundancy.
Last modified $Date: 1999/10/07 01:45:27 $
Constructor Summary | |
ProductReference()
Empty constructor required by serialization. |
|
ProductReference(long oid)
Constructs a reference that will point to the product with the specified objectID . |
|
ProductReference(Product ent)
Constructs a reference that will point to the specified product. |
Method Summary | |
void |
addAnnotation(Identifier id,
java.lang.String aud,
AnnotationReference ann)
Adds the specified annotation to this product by delegating to its associated entity's addAnnotation method. |
void |
addChild(Identifier id,
Product prd)
Adds the specified product as a child to this product by delegating to the associated entity's addChild() method. |
com.sun.java.util.collections.Iterator |
annotations()
Provides the list of annotations associated with this product from the method of the same name in this reference's entity. |
void |
assign(long oid,
com.sun.java.util.collections.HashMap vals)
Assigns a reference that will point to the product whose values are represented in the specified map. |
com.sun.java.util.collections.Iterator |
children()
Provides the list of children associated with this product from the method of the same name in this reference's entity. |
AnnotationReference |
getAnnotation(java.lang.String aud,
java.util.Locale loc)
Provides the specified annotation from the method of the same name in this reference's associated entity. |
ManufacturerReference |
getManufacturer()
Provides this product's manufacturer by delegating to the entity associated with this reference. |
java.lang.String |
getManufacturerCode()
Provides the manufacturer code for this product. |
java.lang.String |
getName(java.util.Locale loc)
Provides the name of the product for the specified locale. |
ProductReference |
getParent()
Provides the parent product of this product. |
double |
getPrice()
Provides the base price for this product. |
boolean |
isInStock()
Signals whether or not the product is in stock. |
void |
removeAnnotation(Identifier id,
AnnotationReference ann)
Removes the specified annotation from this product by delegating to the removeAnnotation() method in this reference's
associated entity. |
void |
removeChild(Identifier id,
Product c)
Removes the specified product from this product's children by delegating to the removeChild() method in this reference's
associated entity. |
void |
removeParent(Identifier id,
Product prnt)
Removes the specified parent from this product by delegating to the removeParent() method in this reference's
associated entity. |
Methods inherited from class com.imaginary.lwp.BaseReference |
assign,
assign,
get,
getEntity,
getLastUpdateID,
getLastUpdateTime,
getObjectID,
put,
reconnect |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ProductReference()
public ProductReference(long oid)
objectID
.oid
- the objectID
of the target productpublic ProductReference(Product ent) throws java.rmi.RemoteException
ent
- the product to be pointed atMethod Detail |
public void assign(long oid, com.sun.java.util.collections.HashMap vals)
id
- the objectID
of the productvals
- the mapping of product valuespublic void addAnnotation(Identifier id, java.lang.String aud, AnnotationReference ann) throws PersistenceException, java.rmi.RemoteException
addAnnotation
method.id
- the client idenfitier for the transactionaud
- the audience type of the annotationann
- the annotation to be addedpublic void addChild(Identifier id, Product prd) throws IllegalProductRelationException, PersistenceException, java.rmi.RemoteException
addChild()
method.id
- the client identifier for the transactionprd
- 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 AnnotationReference getAnnotation(java.lang.String aud, java.util.Locale loc) throws java.rmi.RemoteException
aud
- the audience type of the desired annotationloc
- the locale of the desired annotationpublic 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 for which the name should be translatedpublic ProductReference getParent() throws java.rmi.RemoteException
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
removeAnnotation()
method in this reference's
associated entity.id
- the client identifier for this transactionann
- the annotation to be removedpublic void removeChild(Identifier id, Product c) throws PersistenceException, java.rmi.RemoteException
removeChild()
method in this reference's
associated entity.id
- the client identifier for this transactionc
- the child product to be removedpublic void removeParent(Identifier id, Product prnt) throws PersistenceException, java.rmi.RemoteException
removeParent()
method in this reference's
associated entity.id
- the client identifier for this transactionprnt
- the parent to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |