|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objecthirondelle.fish.main.resto.RestoDAO
final class RestoDAO
Data Access Object (DAO) for Resto
objects.
Constructor Summary | |
---|---|
RestoDAO()
|
Method Summary | |
---|---|
(package private) Id |
add(Resto aResto)
Add a new Resto to the database. |
(package private) boolean |
change(Resto aResto)
Update an existing Resto . |
(package private) void |
delete(Id aRestoId)
Delete a Resto . |
(package private) Resto |
fetch(Id aRestoId)
Return a single Resto identified by its id. |
(package private) List<Resto> |
list()
Return a List of all Resto objects. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RestoDAO()
Method Detail |
---|
List<Resto> list() throws DAOException
Resto
objects.
DAOException
Resto fetch(Id aRestoId) throws DAOException
Resto
identified by its id.
DAOException
Id add(Resto aResto) throws DAOException, DuplicateException
Resto
to the database.
The name of the restaurant must be unique. If there is a name conflict, then
a DuplicateException
is thrown.
DAOException
DuplicateException
boolean change(Resto aResto) throws DAOException, DuplicateException
Resto
.
DAOException
DuplicateException
void delete(Id aRestoId) throws DAOException
Resto
.
If an item is linked to this Resto
, then deletion will fail, and a
DAOException
is thrown.
DAOException
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |