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

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface DeptLocalHome
extends javax.ejb.EJBLocalHome

The LocalHome Interface for the Dept CMP Sample.


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

Method Detail

create

DeptLocal create(java.lang.Integer deptno)
                 throws javax.ejb.CreateException
This LocalHome Interface Method is responsible for the creation of a skeleton DeptLocal.

Parameters:
deptno - java.lang.Integer
Returns:
DeptLocal
Throws:
javax.ejb.CreateException. - This exception is thrown to indicate a failure to create the entity EJB.
javax.ejb.CreateException

create

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

Parameters:
deptno - java.lang.Integer
name - java.lang.String
budget - double
Returns:
DeptLocal
Throws:
javax.ejb.CreateException. - This exception is thrown to indicate a failure to create the entity EJB.
javax.ejb.CreateException

findByPrimaryKey

DeptLocal findByPrimaryKey(DeptKey primaryKey)
                           throws javax.ejb.FinderException
This LocalHome Interface Method is used to find a Dept by its primary key.

Parameters:
primaryKey - DeptKey
Returns:
DeptLocal
Throws:
java.rmi.RemoteException. - This exception is thrown to indicate some sort of remote exception occurred.
javax.ejb.FinderException