KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > league > ejb > session > LeagueFacadeRemoteBusiness


1
2 package league.ejb.session;
3
4 import java.util.Collection JavaDoc;
5 import league.util.League;
6 import league.util.Match;
7 import league.util.Round;
8
9
10 /**
11  * This is the business interface for LeagueFacade enterprise bean.
12  */

13 public interface LeagueFacadeRemoteBusiness {
14     league.util.League createLeague(java.lang.String JavaDoc name, java.util.Date JavaDoc startDate, java.util.Date JavaDoc endDate, java.lang.String JavaDoc note) throws java.rmi.RemoteException JavaDoc;
15
16     void createRound(java.lang.Integer JavaDoc leagueId, java.lang.String JavaDoc name, java.util.Date JavaDoc startDate) throws java.rmi.RemoteException JavaDoc;
17
18     java.util.Collection JavaDoc getPlayersInRound(league.ejb.entity.RoundLocal rl) throws java.rmi.RemoteException JavaDoc;
19
20     java.lang.Integer JavaDoc createPlayer(java.lang.String JavaDoc name, java.lang.String JavaDoc note, java.lang.String JavaDoc userId) throws java.rmi.RemoteException JavaDoc;
21
22     void addPlayerToTeam(java.lang.Integer JavaDoc playerId, java.lang.Integer JavaDoc teamId) throws java.rmi.RemoteException JavaDoc;
23
24     java.lang.Integer JavaDoc createTeam(java.lang.String JavaDoc name, Integer JavaDoc league) throws java.rmi.RemoteException JavaDoc;
25
26     java.util.Collection JavaDoc getLeagues() throws java.rmi.RemoteException JavaDoc;
27
28   // java.util.Collection getRounds(league.ejb.entity.LeagueLocal ll) throws java.rmi.RemoteException;
29

30     Collection JavaDoc getTeamsInLeague(java.lang.Integer JavaDoc id) throws java.rmi.RemoteException JavaDoc;
31
32     String JavaDoc testGroups() throws java.rmi.RemoteException JavaDoc;
33
34     league.util.Round getRound(java.lang.Integer JavaDoc id) throws java.rmi.RemoteException JavaDoc;
35
36     Integer JavaDoc createMatch(java.lang.Integer JavaDoc roundId, java.util.Hashtable JavaDoc results) throws java.rmi.RemoteException JavaDoc;
37     
38     Collection JavaDoc getMatches(Integer JavaDoc roundId) throws java.rmi.RemoteException JavaDoc;
39
40     Round getActiveRound(java.lang.Integer JavaDoc leagueId) throws java.rmi.RemoteException JavaDoc;
41
42     Match getMatchById(java.lang.Integer JavaDoc matchId) throws java.rmi.RemoteException JavaDoc;
43
44      void updateMatch(Match m) throws java.rmi.RemoteException JavaDoc;
45
46     void addTeamToLastPlace(java.lang.Integer JavaDoc roundId, java.lang.Integer JavaDoc teamId) throws java.rmi.RemoteException JavaDoc;
47
48     League getLeagueById(java.lang.Integer JavaDoc leagueId) throws java.rmi.RemoteException JavaDoc;
49
50     java.util.Collection JavaDoc getRounds(java.lang.Integer JavaDoc leagueId) throws java.rmi.RemoteException JavaDoc;
51
52     void setTeamStartPoints(java.lang.Integer JavaDoc teamId, java.lang.Integer JavaDoc groupId, java.lang.Integer JavaDoc startPoints) throws java.rmi.RemoteException JavaDoc;
53 }
54
Popular Tags