Fish & Chips Club 4.10.0.0

hirondelle.fish.exercise.html5
Class PersonDAO

Object
  extended by hirondelle.fish.exercise.html5.PersonDAO

final class PersonDAO
extends Object

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

PersonDAO()
Method Detail

list

Collection<Person> list()
                  throws DAOException
Throws:
DAOException

fetch

public Person fetch(Id aPersonId)
Return a single Person identified by its id.


add

void add(Person aPerson)
   throws ModelCtorException
Add a new Person to the database. The name must be unique.

Throws:
ModelCtorException

change

void change(Person aPerson)
      throws DAOException,
             DuplicateException
Update an existing Person.

Throws:
DAOException
DuplicateException

delete

void delete(Id aPersonId)
      throws DAOException
Delete a single Person.

Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26