org.ow2.easybeans.examples.entitybean
Class Employee

java.lang.Object
  extended by org.ow2.easybeans.examples.entitybean.Employee
All Implemented Interfaces:
java.io.Serializable

public class Employee
extends java.lang.Object
implements java.io.Serializable

Define an employee with an id and a name.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Employee()
           
 
Method Summary
 int getId()
          Gets the Id of the employee.
 java.lang.String getName()
          Gets the name of the employee.
 void setId(int id)
          Sets id of the employee.
 void setName(java.lang.String name)
          Sets the name.
 java.lang.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

Employee

public Employee()
Method Detail

getId

public int getId()
Gets the Id of the employee.

Returns:
the id of the employee.

setId

public void setId(int id)
Sets id of the employee.

Parameters:
id - the id's employee

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - of employee.

getName

public java.lang.String getName()
Gets the name of the employee.

Returns:
name of the employee.

toString

public java.lang.String toString()
Computes a string representation of this employee.

Overrides:
toString in class java.lang.Object
Returns:
string representation.


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.