org.ow2.easybeans.examples.maven.jpa2.bean
Class FacadeStatelessSessionBean

java.lang.Object
  extended by org.ow2.easybeans.examples.maven.jpa2.bean.FacadeStatelessSessionBean
All Implemented Interfaces:
BusinessInterface

public class FacadeStatelessSessionBean
extends java.lang.Object
implements BusinessInterface

Stateless session bean that is using JPA 2.0.

Author:
Florent Benoit

Constructor Summary
FacadeStatelessSessionBean()
           
 
Method Summary
 java.util.List<Employee> findEmployees()
          Find all employees.
 Employee findEmployeeWithItsGivenName(java.lang.String name)
          Allows to find an employee by its name.
 void init()
          Initialize the Database with new entities.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacadeStatelessSessionBean

public FacadeStatelessSessionBean()
Method Detail

init

public void init()
Initialize the Database with new entities.

Specified by:
init in interface BusinessInterface

findEmployees

public java.util.List<Employee> findEmployees()
Find all employees.

Specified by:
findEmployees in interface BusinessInterface
Returns:
list of employees

findEmployeeWithItsGivenName

public Employee findEmployeeWithItsGivenName(java.lang.String name)
Allows to find an employee by its name.

Specified by:
findEmployeeWithItsGivenName in interface BusinessInterface
Parameters:
name - the given name
Returns:
the given employee, else null


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