com.jwpepper.inv.pprprd
Class PepperProductReference

java.lang.Object
  |
  +--com.imaginary.lwp.BaseReference
        |
        +--com.jwpepper.inv.ProductReference
              |
              +--com.jwpepper.inv.pprprd.PepperProductReference

public class PepperProductReference
extends ProductReference

The reference class for the PepperProduct business component.
Last modified $Date: 1999/10/05 15:26:49 $

Version:
$Revision
Author:
Neophytos Iacovou (iacovou@ancept.com), George Reese (george@ancept.com)
See Also:
Serialized Form

Constructor Summary
PepperProductReference()
          Empty constructor required for serialization.
PepperProductReference(long oid)
          Constructs a new PepperProductReference that refers to the PepperProduct of the specified objectID.
PepperProductReference(PepperProduct ent)
          Constructs a new PepperProductReference for the specified product entity.
 
Method Summary
 void assign(long oid, com.sun.java.util.collections.HashMap vals)
          Assigns a new PepperProductReference from the values stored in the specified HashMap.
 java.lang.String getArranger()
          Provides the arranger associated with this product.
 Classification getClassification()
          Provides the classification associated with this piece of music.
 java.lang.String getComposer()
          Provides the composer of this piece of music.
 Format getFormat()
          Provides the physical format for the product.
 java.lang.String getGrade()
          Provides the difficulty grade associated with this product.
 Voicing getVoicing()
          Provides the voicing associated with this product.
 com.sun.java.util.collections.Iterator styles()
          Lists the styles associated with this product.
 
Methods inherited from class com.jwpepper.inv.ProductReference
addAnnotation, addChild, annotations, children, getAnnotation, getManufacturer, getManufacturerCode, getName, getParent, getPrice, isInStock, removeAnnotation, removeChild, removeParent
 
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

PepperProductReference

public PepperProductReference()
Empty constructor required for serialization.

PepperProductReference

public PepperProductReference(long oid)
Constructs a new PepperProductReference that refers to the PepperProduct of the specified objectID.
Parameters:
oid - the objectID of the product in question

PepperProductReference

public PepperProductReference(PepperProduct ent)
                       throws java.rmi.RemoteException
Constructs a new PepperProductReference for the specified product entity.
Parameters:
ent - the product entity
Throws:
java.rmi.RemoteException - a network error occurred
Method Detail

assign

public void assign(long oid,
                   com.sun.java.util.collections.HashMap vals)
Assigns a new PepperProductReference from the values stored in the specified HashMap.
Parameters:
oid - the objectID of the product
vals - the values this product should be loaded with
Overrides:
assign in class ProductReference

getArranger

public java.lang.String getArranger()
                             throws java.rmi.RemoteException
Provides the arranger associated with this product.
Returns:
the arranger
Throws:
java.rmi.RemoteException - a network error occurred

getClassification

public Classification getClassification()
                                 throws java.rmi.RemoteException
Provides the classification associated with this piece of music.
Returns:
the classification
Throws:
java.rmi.RemoteException - a network error occurred

getComposer

public java.lang.String getComposer()
                             throws java.rmi.RemoteException
Provides the composer of this piece of music.
Returns:
the composer
Throws:
java.rmi.RemoteException - a network error occurred

getFormat

public Format getFormat()
                 throws java.rmi.RemoteException
Provides the physical format for the product.
Returns:
the format
Throws:
java.rmi.RemoteException - a network error occurred

getGrade

public java.lang.String getGrade()
                          throws java.rmi.RemoteException
Provides the difficulty grade associated with this product.
Returns:
the grade
Throws:
java.rmi.RemoteException - a network error occurred

getVoicing

public Voicing getVoicing()
                   throws java.rmi.RemoteException
Provides the voicing associated with this product.
Returns:
the voicing
Throws:
java.rmi.RemoteException - a network error occurred

styles

public com.sun.java.util.collections.Iterator styles()
                                              throws java.rmi.RemoteException
Lists the styles associated with this product. The first style in the list is the primary style.
Returns:
the list of styles
Throws:
java.rmi.RemoteException - a network error occurred