Fish & Chips Club 4.10.0.0

hirondelle.fish.main.resto
Class RestoDAO

Object
  extended by hirondelle.fish.main.resto.RestoDAO

final class RestoDAO
extends Object

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

RestoDAO()
Method Detail

list

List<Resto> list()
           throws DAOException
Return a List of all Resto objects.

Throws:
DAOException

fetch

Resto fetch(Id aRestoId)
      throws DAOException
Return a single Resto identified by its id.

Throws:
DAOException

add

Id add(Resto aResto)
 throws DAOException,
        DuplicateException
Add a new Resto to the database.

The name of the restaurant must be unique. If there is a name conflict, then a DuplicateException is thrown.

Returns:
the autogenerated database id.
Throws:
DAOException
DuplicateException

change

boolean change(Resto aResto)
         throws DAOException,
                DuplicateException
Update an existing Resto.

Throws:
DAOException
DuplicateException

delete

void delete(Id aRestoId)
      throws DAOException
Delete a Resto.

If an item is linked to this Resto, then deletion will fail, and a DAOException is thrown.

Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26