|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EmpLocal
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 |
---|
java.lang.Integer getEmpid()
java.lang.String getName()
void setName(java.lang.String name)
name
- java.lang.Stringdouble getSalary()
void setSalary(double salary)
salary
- doubledouble getBonus()
void setBonus(double bonus)
bonus
- doublejava.sql.Date getHireDate()
void setHireDate(java.sql.Date hireDate)
hireDate
- java.sql.Datejava.sql.Time getHireTime()
void setHireTime(java.sql.Time hireTime)
hireTime
- java.sql.Timejava.sql.Timestamp getHireTimestamp()
void setHireTimestamp(java.sql.Timestamp hireTimestamp)
hireTimestamp
- java.sql.Timestampboolean getIsManager()
void setIsManager(boolean isManager)
isManager
- booleanint add1()
double calcBonus(double profitFactor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |