org.ow2.easybeans.examples.maven.jpa2.api
Interface BusinessInterface


public interface BusinessInterface

Business interface of the EJB 3.0.

Author:
Florent Benoit

Method Summary
 java.util.List<org.ow2.easybeans.examples.maven.jpa2.entity.Employee> findEmployees()
          Find all employees.
 org.ow2.easybeans.examples.maven.jpa2.entity.Employee findEmployeeWithItsGivenName(java.lang.String name)
          Allows to find an employee by its name.
 void init()
          Initialize the Database with new entities.
 

Method Detail

init

void init()
Initialize the Database with new entities.


findEmployees

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

Returns:
list of employees

findEmployeeWithItsGivenName

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

Parameters:
name - the given name
Returns:
the given employee, else null


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