|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object hirondelle.fish.exercise.html5.PersonDAO
final class PersonDAO
Data Access Object (DAO) for Person
objects.
This implementation is a stub, which only uses objects in memory, in static scope.
No real persistence occurs. This class should synchronize on the shared data, but that
is left out.
Constructor Summary | |
---|---|
PersonDAO()
|
Method Summary | |
---|---|
(package private) void |
add(Person aPerson)
Add a new Person to the database. |
(package private) void |
change(Person aPerson)
Update an existing Person . |
(package private) void |
delete(Id aPersonId)
Delete a single Person . |
Person |
fetch(Id aPersonId)
Return a single Person identified by its id. |
(package private) Collection<Person> |
list()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PersonDAO()
Method Detail |
---|
Collection<Person> list() throws DAOException
DAOException
public Person fetch(Id aPersonId)
Person
identified by its id.
void add(Person aPerson) throws ModelCtorException
Person
to the database. The name must be unique.
ModelCtorException
void change(Person aPerson) throws DAOException, DuplicateException
Person
.
DAOException
DuplicateException
void delete(Id aPersonId) throws DAOException
Person
.
DAOException
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |