com.jwpepper.inv.pprprd
Class PepperProductImpl
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.imaginary.lwp.BaseEntity
|
+--com.jwpepper.inv.ProductImpl
|
+--com.jwpepper.inv.pprprd.PepperProductImpl
- public class PepperProductImpl
- extends ProductImpl
- implements PepperProduct
Implementation of the business logic associated with the
J.W. Pepper-specific product component.
Last modified $Date: 1999/10/04 15:31:06 $
- Version:
- $Revision
- Author:
- Neophytos Iacovou (iacovou@ancept.com), George Reese (george@ancept.com)
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
PepperProductImpl()
Empty constructor for the anonymous building of instances of the
PepperProductImpl class. |
Method Summary |
java.lang.String |
getArranger()
Provides the arranger of the piece the piece. |
Classification |
getClassification()
Provides the classification of the piece. |
java.lang.String |
getComposer()
Provides the composer of the piece. |
Format |
getFormat()
Provides the format of the product, i.e. |
java.lang.String |
getGrade()
Provides the difficulty grade of the piece. |
Voicing |
getVoicing()
Provides the voicing associated with this piece. |
protected void |
load(Memento mem)
Implements the LWP load() method to load the
current state of the product from the specified memento. |
protected void |
store(Memento mem)
Stores the current state of the product into the specified
memento. |
com.sun.java.util.collections.Iterator |
styles()
Provides the list of styles associated with this piece. |
Methods inherited from class com.jwpepper.inv.ProductImpl |
addAnnotation,
addChild,
annotations,
cascadeRemove,
children,
create,
create,
getAnnotation,
getManufacturer,
getManufacturerCode,
getName,
getParent,
getPrice,
isInStock,
removeAnnotation,
removeChild,
removeParent |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone,
exportObject,
exportObject,
exportObject,
unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
PepperProductImpl
public PepperProductImpl()
throws PersistenceException,
java.rmi.RemoteException
- Empty constructor for the anonymous building of instances of the
PepperProductImpl
class. No other constructors should
exist.
- Throws:
- PersistenceException - LWP was unable to
assign a persistence handler
- java.rmi.RemoteException - RMI was unable to export this object
getArranger
public java.lang.String getArranger()
- Provides the arranger of the piece the piece.
- Specified by:
- getArranger in interface PepperProduct
- Returns:
- the arranger
getClassification
public Classification getClassification()
- Provides the classification of the piece.
- Specified by:
- getClassification in interface PepperProduct
- Returns:
- the classification
getComposer
public java.lang.String getComposer()
- Provides the composer of the piece.
- Specified by:
- getComposer in interface PepperProduct
- Returns:
- the composer
getFormat
public Format getFormat()
- Provides the format of the product, i.e. CD, cassette, sheet music.
- Specified by:
- getFormat in interface PepperProduct
- Returns:
- the format
getGrade
public java.lang.String getGrade()
- Provides the difficulty grade of the piece.
- Specified by:
- getGrade in interface PepperProduct
- Returns:
- the grade of the piece
getVoicing
public Voicing getVoicing()
- Provides the voicing associated with this piece.
- Specified by:
- getVoicing in interface PepperProduct
- Returns:
- the voicing
load
protected void load(Memento mem)
throws LoadException
- Implements the LWP
load()
method to load the
current state of the product from the specified memento.
- Parameters:
mem
- the memento from which the state should be loaded- Throws:
- LoadException - an error occurred in loading
the state from the memento
- Overrides:
- load in class ProductImpl
store
protected void store(Memento mem)
throws StoreException
- Stores the current state of the product into the specified
memento.
- Parameters:
mem
- the memento into which the state should be stored- Throws:
- StoreException - an error occurred storing
state information in the memento
- Overrides:
- store in class ProductImpl
styles
public com.sun.java.util.collections.Iterator styles()
- Provides the list of styles associated with this piece. The first
style is the primary style.
- Specified by:
- styles in interface PepperProduct