com.jwpepper.inv
Class AudioReference

java.lang.Object
  |
  +--com.imaginary.lwp.BaseReference
        |
        +--com.jwpepper.inv.AudioReference

public class AudioReference
extends BaseReference

This class is reference for remote methods
Last Modified $Date: 1999/10/06 16:35:53 $

Version:
$Revision: 1.3 $
Author:
Robert Schmid (robert@ancept.com)
See Also:
Serialized Form

Constructor Summary
AudioReference()
          Constructor method.
AudioReference(Audio entity)
          Constructor method.
AudioReference(com.sun.java.util.collections.HashMap values)
          Constructor method.
AudioReference(long oid)
          Constructor method.
 
Method Summary
 void addProduct(Identifier id, Product prd)
          This method adds a Product to a collection of Products that the Audio belongs to.
 java.io.BufferedInputStream getAudio()
          This method returns the Audio String.
 java.util.Locale getLocale()
          This method returns the Locale Object.
 com.sun.java.util.collections.Iterator products()
          This method returns an iterator over the products collection.
 void removeProduct(Identifier id, Product prd)
          This method removes a Product from a collection of Products that the Audio belongs to.
 
Methods inherited from class com.imaginary.lwp.BaseReference
assign, 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

AudioReference

public AudioReference()
Constructor method.

AudioReference

public AudioReference(long oid)
Constructor method.
Parameters:
oid - An ObjectIdentifier

AudioReference

public AudioReference(Audio entity)
               throws java.rmi.RemoteException
Constructor method.
Parameters:
entity - An Audio Object
Throws:
java.rmi.RemoteException - If an error occurs in the Remote Method Interface

AudioReference

public AudioReference(com.sun.java.util.collections.HashMap values)
Constructor method.
Parameters:
values - A Hashmap of values
Method Detail

addProduct

public void addProduct(Identifier id,
                       Product prd)
                throws PersistenceException,
                       java.rmi.RemoteException
This method adds a Product to a collection of Products that the Audio belongs to.
Parameters:
id - An Audio Object Identifier
prd - A Product object
Throws:
PersistenceException - If an error occurs in the Lightweight Persistence Engine
java.rmi.RemoteException - If an error occurs in the Remote Method Interface

products

public com.sun.java.util.collections.Iterator products()
                                                throws java.rmi.RemoteException
This method returns an iterator over the products collection.
Returns:
An iterator of the collection of products
Throws:
java.rmi.RemoteException - If an error occurs in the Remote Method Interface

getAudio

public java.io.BufferedInputStream getAudio()
                                     throws java.rmi.RemoteException
This method returns the Audio String.
Returns:
A String containing the text of the Audio
Throws:
java.rmi.RemoteException - If an error occurs in the Remote Method Interface

getLocale

public java.util.Locale getLocale()
                           throws java.rmi.RemoteException
This method returns the Locale Object.
Returns:
A Locale Object
Throws:
java.rmi.RemoteException - If an error occurs in the Remote Method Interface

removeProduct

public void removeProduct(Identifier id,
                          Product prd)
                   throws PersistenceException,
                          java.rmi.RemoteException
This method removes a Product from a collection of Products that the Audio belongs to.
Parameters:
id - An identifer object for the Audio
prd - A Product object to add to the collection
Throws:
PersistenceException - If an error occurs in the Lightweight Persistence Engine
java.rmi.RemoteException - If an error occurs in the Remote Method Interface