KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > team > PlayerLocalHome


1
2 package team;
3
4 import java.util.Collection JavaDoc;
5 import javax.ejb.*;
6
7
8 /**
9  * This is the local-home interface for Player enterprise bean.
10  */

11 public interface PlayerLocalHome extends EJBLocalHome {
12     
13     PlayerLocal findByPrimaryKey(String JavaDoc key) throws FinderException;
14     
15     public PlayerLocal create(String JavaDoc id, String JavaDoc name, String JavaDoc position, Double JavaDoc salary) throws CreateException;
16     
17     Collection JavaDoc findByName(String JavaDoc name) throws FinderException;
18     
19     Collection JavaDoc findByPosition(String JavaDoc position) throws FinderException;
20     
21     Collection JavaDoc findBySalary(Double JavaDoc salary) throws FinderException;
22     
23     Collection JavaDoc findAll() throws FinderException;
24     
25     Collection JavaDoc findByHigherSalary(String JavaDoc name) throws FinderException;
26     
27     Collection JavaDoc findByPositionAndName(String JavaDoc position, String JavaDoc name) throws FinderException;
28     
29     Collection JavaDoc findBySalaryRange(double low, double high) throws FinderException;
30     
31     Collection JavaDoc findBySport(String JavaDoc sport) throws FinderException;
32     
33     Collection JavaDoc findByTest(String JavaDoc param1, String JavaDoc param2, String JavaDoc param3) throws FinderException;
34     
35     Collection JavaDoc findNotOnTeam() throws FinderException;
36     
37     Collection JavaDoc findByCity(String JavaDoc city) throws FinderException;
38     
39     Collection JavaDoc findByLeague(LeagueLocal league) throws FinderException;
40     
41     
42     
43 }
44
Popular Tags