com.jwpepper.inv
Class AnnotationReference

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

public class AnnotationReference
extends BaseReference

This class is reference for remote methods
Last Modified $Date: 1999/10/07 01:45:27 $

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

Constructor Summary
AnnotationReference()
          Constructor method.
AnnotationReference(Annotation entity)
          Constructor method.
AnnotationReference(com.sun.java.util.collections.HashMap values)
          Constructor method.
AnnotationReference(long oid)
          Constructor method.
 
Method Summary
 void addProduct(Identifier id, Product prd)
          This method adds a Product to a collection of Products that the Annotation belongs to.
 java.util.Locale getLocale()
          This method returns the Locale Object.
 java.lang.String getMimeType()
           
 java.lang.String getText()
          This method returns the Annotation String.
 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 Annotation 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

AnnotationReference

public AnnotationReference()
Constructor method.

AnnotationReference

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

AnnotationReference

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

AnnotationReference

public AnnotationReference(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 Annotation belongs to.
Parameters:
id - An Annotation 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

getText

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

getMimeType

public java.lang.String getMimeType()
                             throws java.rmi.RemoteException

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 Annotation belongs to.
Parameters:
id - An identifer object for the Annotation
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