///////////////////////////////////////////////////////////////////////////////
// File     : EJB_DOCUMENTHome.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 DOCUMENT table.
 * <br><i>Ejen EJB 1.1 (BMP) demonstration</i>
 * @version 1.0
 * @author (unknown)
 * @see org.ejb.test.DOCUMENTValues
 * @see org.ejb.test.EJB_DOCUMENT
 * @see org.ejb.test.EJB_DOCUMENTBean
 * @see org.ejb.test.EJB_DOCUMENT_PK
 */
public interface EJB_DOCUMENTHome extends EJBHome {

    /**
     * Creates a new DOCUMENT row.
     * @param pk primary key of the new row to be created.
     * @param values a values object that contains values for the
     *        DOCUMENT 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_DOCUMENT create(EJB_DOCUMENT_PK pk, DOCUMENTValues 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_DOCUMENT findByPrimaryKey(EJB_DOCUMENT_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 addressid.
     * @param addressid value of the ADDRESSID 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 findByAddressid(int addressid) throws FinderException, RemoteException;

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

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