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

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface EmpLocalHome
extends javax.ejb.EJBLocalHome

The Home Interface for the Emp CMP Sample.


Method Summary
 EmpLocal create(java.lang.Integer empid)
          This Home Interface Method is responsible for the creation of a skeleton Emp.
 EmpLocal 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.
 EmpLocal findByPrimaryKey(EmpKey primaryKey)
          This Home Interface Method is used to find a Emp by its primary key.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

create

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

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

create

EmpLocal 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
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:
EmpLocal
Throws:
javax.ejb.CreateException. - This exception is thrown to indicate a failure to create the entity EJB.
javax.ejb.CreateException

findByPrimaryKey

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

Parameters:
primaryKey - EmpKey
Returns:
EmpLocal
Throws:
javax.ejb.FinderException. - This exception is thrown to indicate a failure to find the entity EJB.
javax.ejb.FinderException