///////////////////////////////////////////////////////////////////////////////
// File     : EJB_POSITIONHome.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 POSITION table.
 * <br><i>Ejen EJB 1.1 (BMP) demonstration</i>
 * @version 1.0
 * @author (unknown)
 * @see org.ejb.test.POSITIONValues
 * @see org.ejb.test.EJB_POSITION
 * @see org.ejb.test.EJB_POSITIONBean
 * @see org.ejb.test.EJB_POSITION_PK
 */
public interface EJB_POSITIONHome extends EJBHome {

    /**
     * Creates a new POSITION row.
     * @param pk primary key of the new row to be created.
     * @param values a values object that contains values for the
     *        POSITION row to be created.
     * @return remote interface of the created entity bean.
     * @throws javax.ejb.CreateException row count for INSERT != 1.
     * @throws javax.ejb.EJBException SQL error.
     * @throws java.rmi.RemoteException
     */
    public EJB_POSITION create(EJB_POSITION_PK pk, POSITIONValues 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_POSITION findByPrimaryKey(EJB_POSITION_PK pk) throws ObjectNotFoundException, RemoteException;

    /**
     * Finds rows by documentid.
     * @param documentid value of the DOCUMENTID 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 findByDocumentid(int documentid) throws FinderException, RemoteException;

    /**
     * Finds rows by position.
     * @param position value of the POSITION 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 findByPosition(int position) throws FinderException, RemoteException;

    /**
     * Finds rows by productid.
     * @param productid value of the PRODUCTID 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 findByProductid(int productid) throws FinderException, RemoteException;

    /**
     * Finds rows by quantity.
     * @param quantity value of the QUANTITY 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 findByQuantity(int quantity) throws FinderException, RemoteException;

    /**
     * Finds rows by price.
     * @param price value of the PRICE 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 findByPrice(java.math.BigDecimal price) throws FinderException, RemoteException;

    /**
     * Finds all rows in the POSITION 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_POSITIONHome.html (HTML view generated by ejen v.1.0.0).