|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.ProcessingEngine
public final class ProcessingEngine
The main processing algorithm for player scores and ranks, and bets.
Method Summary | |
---|---|
static boolean |
isChampionshipClosed(LocalChampionship dbChampionship)
Checks if the specified phase is closed, namely if all of its phases are closed. |
static boolean |
isEventClosed(LocalEvent dbEvent)
Checks if the specified event is closed, namely if all player results have been entered. |
static boolean |
isPhaseClosed(LocalPhase dbPhase)
Checks if the specified phase is closed, namely if all of its events are closed. |
static void |
processChampionship(LocalChampionship dbChampionship)
Processes all events and phases of the specified championship: scores, ranks, bets. |
static void |
processEvent(LocalEvent dbEvent)
Processes the specified event: scores, ranks, bets. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void processChampionship(LocalChampionship dbChampionship) throws Exception
dbChampionship
- a championship. Should not be null
.
NullPointerException
- if dbChampionship
is null
.
Exception
- if any error occurs during the processing step.processEvent(LocalEvent)
public static void processEvent(LocalEvent dbEvent) throws Exception
dbEvent
- a championship phase's event. Should not be null
.
NullPointerException
- if dbEvent
is null
.
Exception
- if any error occurs during the processing step.isEventClosed(LocalEvent)
,
processEventRanks(LocalEvent)
,
processEventBets(LocalEvent)
,
processPhase(LocalPhase)
public static boolean isEventClosed(LocalEvent dbEvent) throws NamingException, FinderException
dbEvent
- a championship phase's event. Should not be null
.
true
if the event is closed, false
otherwise.
NullPointerException
- if dbEvent
is null
.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
EJBException
- if any exception occured during the execution of this method.isPhaseClosed(LocalPhase)
,
isChampionshipClosed(LocalChampionship)
public static boolean isPhaseClosed(LocalPhase dbPhase) throws NamingException, FinderException
dbPhase
- a championship's phase. Should not be null
.
true
if the phase is closed, false
otherwise.
NullPointerException
- if dbPhase
is null
.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
EJBException
- if any exception occured during the execution of this method.isEventClosed(LocalEvent)
,
isChampionshipClosed(LocalChampionship)
public static boolean isChampionshipClosed(LocalChampionship dbChampionship) throws NamingException, FinderException
dbChampionship
- a championship. Should not be null
.
true
if the championship is closed, false
otherwise.
NullPointerException
- if dbChampionship
is null
.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
EJBException
- if any exception occured during the execution of this method.isPhaseClosed(LocalPhase)
,
isEventClosed(LocalEvent)
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |