org.ow2.easybeans.examples.entitybean
Class SessionFacade

java.lang.Object
  extended by 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

Constructor Summary
SessionFacade()
           
 
Method Summary
 void addEmployee(int id, String name)
          Adds an employee.
 Employee findEmployee(int id)
          Finds the Employee with its given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFacade

public SessionFacade()
Method Detail

addEmployee

public void addEmployee(int id,
                        String name)
Adds an employee.

Specified by:
addEmployee in interface SessionFacadeRemote
Parameters:
id - of the employee
name - 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-2012 OW2 Consortium. All Rights Reserved.