///////////////////////////////////////////////////////////////////////////////
// File     : EJB_PRODUCTHome.java
// Creation : 2002.04.29 (generated by ejen 1.0.0)

package org.ejb.test;

import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.ObjectNotFoundException;
import javax.ejb.FinderException;
import java.rmi.RemoteException;
import java.util.Collection;


/**
 * Home interface for the entity bean that maps the PRODUCT table.
 * <br><i>Ejen EJB 1.1 (BMP) demonstration</i>
 * @version 1.0
 * @author (unknown)
 * @see org.ejb.test.PRODUCTValues
 * @see org.ejb.test.EJB_PRODUCT
 * @see org.ejb.test.EJB_PRODUCTBean
 * @see org.ejb.test.EJB_PRODUCT_PK
 */
public interface EJB_PRODUCTHome extends EJBHome {

    /**
     * Creates a new PRODUCT row.
     * @param values a values object that contains values for the
     *        PRODUCT row to be created.
     * @return remote interface of the created entity bean.
     * @throws javax.ejb.CreateException row count for INSERT != 1
     *                                   or unable to get the sequence value.
     * @throws javax.ejb.EJBException SQL error.
     * @throws java.rmi.RemoteException
     */
    public EJB_PRODUCT create(PRODUCTValues values) throws CreateException, RemoteException;

    /**
     * Finds a single row, provided a primary key.
     * @param pk the primary key that indentifies the row to retrieve.
     * @return remote interface mapping the founded row.
     * @throws javax.ejb.ObjectNotFoundException no row with this primary key.
     * @throws javax.ejb.EJBException SQL error.
     * @throws java.rmi.RemoteException
     */
    public EJB_PRODUCT findByPrimaryKey(EJB_PRODUCT_PK pk) throws ObjectNotFoundException, RemoteException;

    /**
     * Finds rows by id.
     * @param id value of the ID column.
     * @return remote interfaces collection mapping the founded rows.
     * @throws javax.ejb.EJBException SQL error.
     * @throws javax.ejb.FinderException unused.
     * @throws java.rmi.RemoteException
     */
    public Collection findById(int id) throws FinderException, RemoteException;

    /**
     * Finds rows by name.
     * @param name value of the NAME column.
     * @return remote interfaces collection mapping the founded rows.
     * @throws javax.ejb.EJBException SQL error.
     * @throws javax.ejb.FinderException unused.
     * @throws java.rmi.RemoteException
     */
    public Collection findByName(java.lang.String name) throws FinderException, RemoteException;

    /**
     * Finds rows by cost.
     * @param cost value of the COST column.
     * @return remote interfaces collection mapping the founded rows.
     * @throws javax.ejb.EJBException SQL error.
     * @throws javax.ejb.FinderException unused.
     * @throws java.rmi.RemoteException
     */
    public Collection findByCost(java.math.BigDecimal cost) throws FinderException, RemoteException;

    /**
     * Finds all rows in the PRODUCT table.
     * @return remote interfaces collection mapping the founded rows.
     * @throws javax.ejb.EJBException SQL error.
     * @throws javax.ejb.FinderException unused.
     * @throws java.rmi.RemoteException
     */
    public Collection findAll() throws FinderException, RemoteException;
}

EJB_PRODUCTHome.html (HTML view generated by ejen v.1.0.0).