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:
org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface

public class FacadeStatelessSessionBean
extends Object
implements org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface

Stateless session bean that is using JPA 2.0.

Author:
Florent Benoit

Constructor Summary
FacadeStatelessSessionBean()
           
 
Method Summary
 List<org.ow2.easybeans.examples.maven.jpa2.entity.Employee> findEmployees()
          Find all employees.
 org.ow2.easybeans.examples.maven.jpa2.entity.Employee findEmployeeWithItsGivenName(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 org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface

findEmployees

public List<org.ow2.easybeans.examples.maven.jpa2.entity.Employee> findEmployees()
Find all employees.

Specified by:
findEmployees in interface org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface
Returns:
list of employees

findEmployeeWithItsGivenName

public org.ow2.easybeans.examples.maven.jpa2.entity.Employee findEmployeeWithItsGivenName(String name)
Allows to find an employee by its name.

Specified by:
findEmployeeWithItsGivenName in interface org.ow2.easybeans.examples.maven.jpa2.api.BusinessInterface
Parameters:
name - the given name
Returns:
the given employee, else null


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