|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Emp
The Remote Interface Business Methods for the Emp CMP Sample.
Method Summary | |
---|---|
int |
add1()
add1 method returns empid + 1. |
double |
calcBonus(double profitFactor)
calcBonus method calculates an employee's annual bonus given a positive profitFactor. |
double |
getBonus()
This Remote method gets the bonus CMP attribute for an Emp. |
java.lang.Integer |
getEmpid()
This Remote method gets the empid CMP attribute for an Emp. |
java.sql.Date |
getHireDate()
This Remote method gets the hireDate CMP attribute for an Emp. |
java.sql.Time |
getHireTime()
This Remote method gets the hireTime CMP attribute for an Emp. |
java.sql.Timestamp |
getHireTimestamp()
This Remote method gets the hireTimestamp CMP attribute for an Emp. |
boolean |
getIsManager()
This Remote method gets the isManager CMP attribute for an Emp. |
java.lang.String |
getName()
This Remote method gets the name CMP attribute for an Emp. |
double |
getSalary()
This Remote method gets the salary CMP attribute for an Emp. |
void |
setBonus(double bonus)
This Remote method sets the bonus CMP attribute for an Emp. |
void |
setHireDate(java.sql.Date hireDate)
This Remote method sets the hireDate CMP attribute for an Emp. |
void |
setHireTime(java.sql.Time hireTime)
This Remote method sets the hireTime CMP attribute for an Emp. |
void |
setHireTimestamp(java.sql.Timestamp hireTimestamp)
This Remote method sets the hireTimestamp CMP attribute for an Emp. |
void |
setIsManager(boolean isManager)
This Remote method sets the isManager CMP attribute for an Emp. |
void |
setName(java.lang.String name)
This Remote method sets the name CMP attribute for an Emp. |
void |
setSalary(double salary)
This Remote method sets the salary CMP attribute for an Emp. |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
java.lang.Integer getEmpid() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.java.lang.String getName() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setName(java.lang.String name) throws java.rmi.RemoteException
name
- java.lang.String
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.double getSalary() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setSalary(double salary) throws java.rmi.RemoteException
salary
- double
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.double getBonus() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setBonus(double bonus) throws java.rmi.RemoteException
bonus
- double
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.java.sql.Date getHireDate() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setHireDate(java.sql.Date hireDate) throws java.rmi.RemoteException
hireDate
- java.sql.Date
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.java.sql.Time getHireTime() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setHireTime(java.sql.Time hireTime) throws java.rmi.RemoteException
hireTime
- java.sql.Time
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.java.sql.Timestamp getHireTimestamp() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setHireTimestamp(java.sql.Timestamp hireTimestamp) throws java.rmi.RemoteException
hireTimestamp
- java.sql.Timestamp
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.boolean getIsManager() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.void setIsManager(boolean isManager) throws java.rmi.RemoteException
isManager
- boolean
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.int add1() throws java.rmi.RemoteException
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.double calcBonus(double profitFactor) throws java.rmi.RemoteException
profitFactor
- the fractional increase of the value of the company during the current the year
java.rmi.RemoteException
- Signals that a Remote exception of
some sort has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |