com.jwpepper.inv
Interface Manufacturer

All Known Implementing Classes:
ManufacturerImpl

public abstract interface Manufacturer
extends Entity

Prescribes methods to be implemented in support of the manufacturer business component. This interface is the RMI remote interface that exposes methods to access across the network.
Last modified $Date: 1999/10/04 15:31:30 $

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

Field Summary
static java.lang.String CODE
          The code attribute.
static java.lang.String NAME
          The name attribute.
static java.lang.String PRODUCTS
          The products attribute.
 
Method Summary
 void addProduct(Identifier id, Product prd)
          Adds a product to the list of products from this manufacturer.
 void create(Identifier id, java.lang.String cde, java.lang.String nom)
          Initializes a newly created manufacturer and saves it.
 java.lang.String getCode()
          Provides the three letter manufacturer code for this manufacturer.
 java.lang.String getName(java.util.Locale loc)
          Provides the name of this manufacturer translated for the specified locale or for the default locale if no such translation exists.
 com.sun.java.util.collections.Iterator products()
          Provides a list of the products associated with this manufacturer.
 void removeProduct(Identifier id, Product prd)
          Removes the specified product from this manufacturer's list of products.
 
Methods inherited from interface com.imaginary.lwp.Entity
getLastUpdateID, getLastUpdateTime, getObjectID, getReference, remove
 

Field Detail

CODE

public static final java.lang.String CODE
The code attribute.

NAME

public static final java.lang.String NAME
The name attribute.

PRODUCTS

public static final java.lang.String PRODUCTS
The products attribute.
Method Detail

addProduct

public void addProduct(Identifier id,
                       Product prd)
                throws PersistenceException,
                       java.rmi.RemoteException
Adds a product to the list of products from this manufacturer.
Parameters:
id - the client identifier
prd - the product to be added
Throws:
PersistenceException - an error occurred in the transaction
java.rmi.RemoteException - a network error occurred

create

public void create(Identifier id,
                   java.lang.String cde,
                   java.lang.String nom)
            throws PersistenceException,
                   java.rmi.RemoteException
Initializes a newly created manufacturer and saves it.
Parameters:
id - the client identifier
cde - the manufacturer code
nom - the name of the manufacturer
Throws:
PersistenceException - an error occurred in the transaction
java.rmi.RemoteException - a network error occurred

getCode

public java.lang.String getCode()
                         throws java.rmi.RemoteException
Provides the three letter manufacturer code for this manufacturer.
Returns:
the manufacturer code
Throws:
java.rmi.RemoteException - a network error occurred

getName

public java.lang.String getName(java.util.Locale loc)
                         throws java.rmi.RemoteException
Provides the name of this manufacturer translated for the specified locale or for the default locale if no such translation exists.
Parameters:
loc - the locale the name should be translated for
Returns:
the name of the manufacturer
Throws:
java.rmi.RemoteException - a network error occurred

products

public com.sun.java.util.collections.Iterator products()
                                                throws java.rmi.RemoteException
Provides a list of the products associated with this manufacturer.
Returns:
the products associated with this manufacturer
Throws:
java.rmi.RemoteException - a network error occurred

removeProduct

public void removeProduct(Identifier id,
                          Product prd)
                   throws PersistenceException,
                          java.rmi.RemoteException
Removes the specified product from this manufacturer's list of products.
Parameters:
id - the client identifier
prd - the product to be removed
Throws:
PersistenceException - an error occurred in the transaction
java.rmi.RemoteException - a network error occurred