01: package roster;
02:
03: import java.rmi.RemoteException;
04: import java.util.ArrayList;
05: import util.LeagueDetails;
06: import util.PlayerDetails;
07: import util.TeamDetails;
08:
09: /**
10: * This is the business interface for RosterBean enterprise bean.
11: */
12: public interface RosterRemoteBusiness {
13: LeagueDetails getLeague(String leagueId) throws RemoteException;
14:
15: void removeLeague(String leagueId) throws RemoteException;
16:
17: void createLeague(LeagueDetails details) throws RemoteException;
18:
19: TeamDetails getTeam(String teamId) throws RemoteException;
20:
21: void removeTeam(String teamId) throws RemoteException;
22:
23: void createTeamInLeague(TeamDetails details, String leagueId)
24: throws RemoteException;
25:
26: ArrayList getSportsOfPlayer(String playerId) throws RemoteException;
27:
28: ArrayList getLeaguesOfPlayer(String playerId)
29: throws RemoteException;
30:
31: ArrayList getPlayersByPositionAndName(String position, String name)
32: throws RemoteException;
33:
34: ArrayList getPlayersNotOnTeam() throws RemoteException;
35:
36: ArrayList getAllPlayers() throws RemoteException;
37:
38: ArrayList getPlayersByCity(String city) throws RemoteException;
39:
40: ArrayList getPlayersBySport(String sport) throws RemoteException;
41:
42: ArrayList getPlayersByLeagueId(String leagueId)
43: throws RemoteException;
44:
45: ArrayList getPlayersBySalaryRange(double low, double high)
46: throws RemoteException;
47:
48: ArrayList getPlayersByHigherSalary(String name)
49: throws RemoteException;
50:
51: ArrayList getPlayersByPosition(String position)
52: throws RemoteException;
53:
54: ArrayList getTeamsOfLeague(String leagueId) throws RemoteException;
55:
56: ArrayList getPlayersOfTeam(String teamId) throws RemoteException;
57:
58: PlayerDetails getPlayer(String playerId) throws RemoteException;
59:
60: void dropPlayer(String playerId, String teamId)
61: throws RemoteException;
62:
63: void removePlayer(String playerId) throws RemoteException;
64:
65: void addPlayer(String playerId, String teamId)
66: throws RemoteException;
67:
68: void createPlayer(PlayerDetails details) throws RemoteException;
69:
70: ArrayList testFinder(String parm1, String parm2, String parm3)
71: throws RemoteException;
72:
73: ArrayList getPlayersOfTeamCopy(String teamId)
74: throws RemoteException;
75:
76: }
|