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

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface EmpLocal
extends javax.ejb.EJBLocalObject

The Local Interface Business Methods for the Emp CMP Sample.


Method Summary
 int add1()
          This Local method returns empid + 1
 double calcBonus(double profitFactor)
          This Local method returns the newly calculated bonus for a employee for non managers this is calculated by multiplying the yearsWorked, the profitFactor, and the profitUnit for managers the previous result is further multiplied by the mgrFactor and again by the profitFactor
 double getBonus()
          This Local method gets the bonus CMP attribute for an Emp.
 java.lang.Integer getEmpid()
          This Local method gets the empid CMP attribute for an Emp.
 java.sql.Date getHireDate()
          This Local method gets the hireDate CMP attribute for an Emp.
 java.sql.Time getHireTime()
          This Local method gets the hireTime CMP attribute for an Emp.
 java.sql.Timestamp getHireTimestamp()
          This Local method gets the hireTimestamp CMP attribute for an Emp.
 boolean getIsManager()
          This Local method gets the isManager CMP attribute for an Emp.
 java.lang.String getName()
          This Local method gets the name CMP attribute for an Emp.
 double getSalary()
          This Local method gets the salary CMP attribute for an Emp.
 void setBonus(double bonus)
          This Local method sets the bonus CMP attribute for an Emp.
 void setHireDate(java.sql.Date hireDate)
          This Local method sets the hireDate CMP attribute for an Emp.
 void setHireTime(java.sql.Time hireTime)
          This Local method sets the hireTime CMP attribute for an Emp.
 void setHireTimestamp(java.sql.Timestamp hireTimestamp)
          This Local method sets the hireTimestamp CMP attribute for an Emp.
 void setIsManager(boolean isManager)
          This Local method sets the isManager CMP attribute for an Emp.
 void setName(java.lang.String name)
          This Local method sets the name CMP attribute for an Emp.
 void setSalary(double salary)
          This Local method sets the salary CMP attribute for an Emp.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

getEmpid

java.lang.Integer getEmpid()
This Local method gets the empid CMP attribute for an Emp.

Returns:
java.lang.Integer

getName

java.lang.String getName()
This Local method gets the name CMP attribute for an Emp.

Returns:
java.lang.String

setName

void setName(java.lang.String name)
This Local method sets the name CMP attribute for an Emp.

Parameters:
name - java.lang.String

getSalary

double getSalary()
This Local method gets the salary CMP attribute for an Emp.

Returns:
double

setSalary

void setSalary(double salary)
This Local method sets the salary CMP attribute for an Emp.

Parameters:
salary - double

getBonus

double getBonus()
This Local method gets the bonus CMP attribute for an Emp.

Returns:
double

setBonus

void setBonus(double bonus)
This Local method sets the bonus CMP attribute for an Emp.

Parameters:
bonus - double

getHireDate

java.sql.Date getHireDate()
This Local method gets the hireDate CMP attribute for an Emp.

Returns:
java.sql.Date

setHireDate

void setHireDate(java.sql.Date hireDate)
This Local method sets the hireDate CMP attribute for an Emp.

Parameters:
hireDate - java.sql.Date

getHireTime

java.sql.Time getHireTime()
This Local method gets the hireTime CMP attribute for an Emp.

Returns:
java.sql.Time

setHireTime

void setHireTime(java.sql.Time hireTime)
This Local method sets the hireTime CMP attribute for an Emp.

Parameters:
hireTime - java.sql.Time

getHireTimestamp

java.sql.Timestamp getHireTimestamp()
This Local method gets the hireTimestamp CMP attribute for an Emp.

Returns:
java.sql.Timestamp

setHireTimestamp

void setHireTimestamp(java.sql.Timestamp hireTimestamp)
This Local method sets the hireTimestamp CMP attribute for an Emp.

Parameters:
hireTimestamp - java.sql.Timestamp

getIsManager

boolean getIsManager()
This Local method gets the isManager CMP attribute for an Emp.

Returns:
boolean

setIsManager

void setIsManager(boolean isManager)
This Local method sets the isManager CMP attribute for an Emp.

Parameters:
isManager - boolean

add1

int add1()
This Local method returns empid + 1

Returns:
int

calcBonus

double calcBonus(double profitFactor)
This Local method returns the newly calculated bonus for a employee for non managers this is calculated by multiplying the yearsWorked, the profitFactor, and the profitUnit for managers the previous result is further multiplied by the mgrFactor and again by the profitFactor

Returns:
double