|
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.lists.PredictionListDAO
public final class PredictionListDAO
Data Access Object (DAO) for PredictionList
objects.
All operations are related to a given user id.
Constructor Summary | |
---|---|
PredictionListDAO()
|
Method Summary | |
---|---|
(package private) Id |
add(PredictionList aPredictionList,
DateTime aToday)
Add a new PredictionList to the database. |
(package private) boolean |
change(PredictionList aPredictionList)
Update an existing PredictionList . |
(package private) void |
delete(Id aPredictionListId,
Id aUserId)
Delete a PredictionList . |
PredictionList |
fetch(Id aPredictionListId,
Id aUserId)
Return a single PredictionList identified by its id, and its user. |
PredictionList |
fetchPublic(Id aPredictionListId)
Return a single public PredictionList identified by its id. |
List<PredictionList> |
list(Id aUserId)
Return a List of all PredictionList objects for a given user. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PredictionListDAO()
Method Detail |
---|
public List<PredictionList> list(Id aUserId) throws DAOException
PredictionList
objects for a given user.
DAOException
public PredictionList fetch(Id aPredictionListId, Id aUserId) throws DAOException
PredictionList
identified by its id, and its user.
DAOException
public PredictionList fetchPublic(Id aPredictionListId) throws DAOException
PredictionList
identified by its id.
DAOException
Id add(PredictionList aPredictionList, DateTime aToday) throws DAOException
PredictionList
to the database.
aToday
- defines the creation date of the list.
DAOException
boolean change(PredictionList aPredictionList) throws DAOException
PredictionList
. The creation date cannot change.
DAOException
void delete(Id aPredictionListId, Id aUserId) throws DAOException, ForeignKeyException
PredictionList
.
If an item is linked to this PredictionList
, then deletion will fail, and a
ForeignKeyException
will be thrown.
DAOException
ForeignKeyException
|
Predictions 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |