org.ow2.easybeans.examples.entitybean
Class SessionFacade
java.lang.Object
org.ow2.easybeans.examples.entitybean.SessionFacade
- All Implemented Interfaces:
- SessionFacadeRemote
public class SessionFacade
- extends Object
- implements SessionFacadeRemote
Simple stateless bean acting as session facade bean.
- Author:
- Florent Benoit
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFacade
public SessionFacade()
addEmployee
public void addEmployee(int id,
String name)
- Adds an employee.
- Specified by:
addEmployee
in interface SessionFacadeRemote
- Parameters:
id
- of the employeename
- of the employee
findEmployee
public Employee findEmployee(int id)
- Finds the Employee with its given id.
- Specified by:
findEmployee
in interface SessionFacadeRemote
- Parameters:
id
- to find the employee
- Returns:
- employee associated to the given id
Copyright © 2006-2010 OW2 Consortium. All Rights Reserved.