01: package team;
02:
03: import java.util.Collection;
04: import javax.ejb.*;
05:
06: /**
07: * This is the local-home interface for Player enterprise bean.
08: */
09: public interface PlayerLocalHome extends EJBLocalHome {
10:
11: PlayerLocal findByPrimaryKey(String key) throws FinderException;
12:
13: public PlayerLocal create(String id, String name, String position,
14: Double salary) throws CreateException;
15:
16: Collection findByName(String name) throws FinderException;
17:
18: Collection findByPosition(String position) throws FinderException;
19:
20: Collection findBySalary(Double salary) throws FinderException;
21:
22: Collection findAll() throws FinderException;
23:
24: Collection findByHigherSalary(String name) throws FinderException;
25:
26: Collection findByPositionAndName(String position, String name)
27: throws FinderException;
28:
29: Collection findBySalaryRange(double low, double high)
30: throws FinderException;
31:
32: Collection findBySport(String sport) throws FinderException;
33:
34: Collection findByTest(String param1, String param2, String param3)
35: throws FinderException;
36:
37: Collection findNotOnTeam() throws FinderException;
38:
39: Collection findByCity(String city) throws FinderException;
40:
41: Collection findByLeague(LeagueLocal league) throws FinderException;
42:
43: }
|