com.ibm.websphere.samples.ejbquery.employeefinderejb
Interface DeptHome

All Superinterfaces:
javax.ejb.EJBHome, java.rmi.Remote

public interface DeptHome
extends javax.ejb.EJBHome

The Home Interface for the Dept CMP Sample.


Method Summary
 Dept create(java.lang.Integer deptno)
          This Home Interface Method is responsible for the creation of a skeleton Dept.
 Dept create(java.lang.Integer deptno, java.lang.String name, double budget)
          This Home Interface Method is responsible for the creation of a Dept.
 Dept findByPrimaryKey(DeptKey primaryKey)
          This Home Interface Method is used to find a Dept by its primary key.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

Dept create(java.lang.Integer deptno)
            throws javax.ejb.CreateException,
                   java.rmi.RemoteException
This Home Interface Method is responsible for the creation of a skeleton Dept.

Parameters:
deptno - java.lang.Integer
Returns:
Dept
Throws:
javax.ejb.CreateException. - This exception is thrown to indicate a failure to create the entity EJB.
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
javax.ejb.CreateException

create

Dept create(java.lang.Integer deptno,
            java.lang.String name,
            double budget)
            throws javax.ejb.CreateException,
                   java.rmi.RemoteException
This Home Interface Method is responsible for the creation of a Dept.

Parameters:
deptno - java.lang.Integer
name - java.lang.String
budget - double
Returns:
Dept
Throws:
javax.ejb.CreateException. - This exception is thrown to indicate a failure to create the entity EJB.
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
javax.ejb.CreateException

findByPrimaryKey

Dept findByPrimaryKey(DeptKey primaryKey)
                      throws javax.ejb.FinderException,
                             java.rmi.RemoteException
This Home Interface Method is used to find a Dept by its primary key.

Parameters:
primaryKey - DeptKey
Returns:
Dept
Throws:
java.rmi.RemoteException. - This exception is thrown to indicate some sort of remote exception occurred.
javax.ejb.FinderException. - This exception is thrown to indicate a failure to find the entity EJB.
javax.ejb.FinderException
java.rmi.RemoteException