|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object hirondelle.predict.main.prediction.PredictionDAO
public final class PredictionDAO
Data Access Object (DAO) for Prediction
objects.
Constructor Summary | |
---|---|
PredictionDAO()
|
Method Summary | |
---|---|
(package private) Id |
add(Prediction aPrediction,
Id aPredictionListId,
DateTime aNow)
Add a new Prediction to the database. |
(package private) boolean |
change(Prediction aPrediction,
Id aPredictionListId,
DateTime aToday)
Update an existing Prediction . |
(package private) void |
delete(Id aPredictionId,
Id aPredictionListId)
Delete a Prediction . |
(package private) Prediction |
fetch(Id aPredictionId,
Id aPredictionListId)
Return a single Prediction identified by its id, and its Prediction List id. |
(package private) Id |
fetchLoginNameFor(Id aParentId)
Return the login name of the user that owns the given prediction list |
List<Prediction> |
list(Id aPredictionListId)
Return a List of all Prediction objects in a specified Prediction List. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PredictionDAO()
Method Detail |
---|
public List<Prediction> list(Id aPredictionListId) throws DAOException
Prediction
objects in a specified Prediction List.
DAOException
Prediction fetch(Id aPredictionId, Id aPredictionListId) throws DAOException
Prediction
identified by its id, and its Prediction List id.
DAOException
Id add(Prediction aPrediction, Id aPredictionListId, DateTime aNow) throws DAOException, DuplicateException
Prediction
to the database.
DAOException
DuplicateException
boolean change(Prediction aPrediction, Id aPredictionListId, DateTime aToday) throws DAOException, DuplicateException
Prediction
.
The outcome date is set only when the outcome itself has changed from its previous value.
DAOException
DuplicateException
void delete(Id aPredictionId, Id aPredictionListId) throws DAOException
Prediction
.
DAOException
Id fetchLoginNameFor(Id aParentId) throws DAOException
aParentId
- identifies the prediction list.
DAOException
|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |