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

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

public interface EmpHome
extends javax.ejb.EJBHome

The Home Interface for the Emp CMP Sample.


Method Summary
 Emp create(java.lang.Integer empid)
          This Home Interface Method is responsible for the creation of a skeleton Emp.
 Emp create(java.lang.Integer empid, java.lang.String name, double salary, double bonus, java.sql.Date hireDate, java.sql.Time hireTime, java.sql.Timestamp hireTimestamp, boolean isManager)
          This Home Interface Method is responsible for the creation of an Emp.
 Emp findByPrimaryKey(EmpKey primaryKey)
          This Home Interface Method is used to find a Emp by its primary key.
 
Methods inherited from interface javax.ejb.EJBHome
getEJBMetaData, getHomeHandle, remove, remove
 

Method Detail

create

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

Parameters:
empid - java.lang.Integer
Returns:
Emp
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

Emp create(java.lang.Integer empid,
           java.lang.String name,
           double salary,
           double bonus,
           java.sql.Date hireDate,
           java.sql.Time hireTime,
           java.sql.Timestamp hireTimestamp,
           boolean isManager)
           throws javax.ejb.CreateException,
                  java.rmi.RemoteException
This Home Interface Method is responsible for the creation of an Emp.

Parameters:
empid - java.lang.Integer
name - java.lang.String
salary - double
bonus - double
hireDate - java.sql.Date
hireTime - java.sql.Time
hireTimestamp - java.sql.Timestamp
isManager - boolean
Returns:
Emp
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

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

Parameters:
primaryKey - EmpKey
Returns:
Emp
Throws:
javax.ejb.FinderException. - This exception is thrown to indicate a failure to find the entity EJB.
java.rmi.RemoteException - Signals that a Remote exception of some sort has occurred.
javax.ejb.FinderException