|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.easybeans.examples.entitybean.Employee
public class Employee
Define an employee with an id and a name.
Constructor Summary | |
---|---|
Employee()
|
Method Summary | |
---|---|
int |
getId()
Gets the Id of the employee. |
String |
getName()
Gets the name of the employee. |
void |
setId(int id)
Sets id of the employee. |
void |
setName(String name)
Sets the name. |
String |
toString()
Computes a string representation of this employee. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Employee()
Method Detail |
---|
public int getId()
public void setId(int id)
id
- the id's employeepublic void setName(String name)
name
- of employee.public String getName()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |