Fish & Chips Club 4.10.0.0

hirondelle.fish.main.visit
Class VisitDAO

Object
  extended by hirondelle.fish.main.visit.VisitDAO

public final class VisitDAO
extends Object

Data Access Object (DAO) for Visit objects.


Constructor Summary
VisitDAO()
           
 
Method Summary
(package private)  Id add(Visit aVisit)
          Add a new Visit to the database.
(package private)  boolean change(Visit aVisit)
          Update an existing Visit.
(package private)  void delete(Id aVisitId)
          Delete a Visit.
(package private)  Visit fetch(Id aVisitId)
          Return a single Visit identified by its id.
 Visit fetchNextFutureVisit()
          Fetch the next future Visit.
(package private)  List<Visit> list(DynamicSql aOrderBy)
          Return a List of all Visit objects.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitDAO

public VisitDAO()
Method Detail

list

List<Visit> list(DynamicSql aOrderBy)
           throws DAOException
Return a List of all Visit objects.

Parameters:
aOrderBy - determies the order of the returned items.
Throws:
DAOException

fetch

Visit fetch(Id aVisitId)
      throws DAOException
Return a single Visit identified by its id.

Throws:
DAOException

fetchNextFutureVisit

public Visit fetchNextFutureVisit()
                           throws DAOException
Fetch the next future Visit.

This method is public, since used by other packages.

Throws:
DAOException

add

Id add(Visit aVisit)
 throws DAOException
Add a new Visit to the database.

Returns:
the autogenerated database id.
Throws:
DAOException

change

boolean change(Visit aVisit)
         throws DAOException
Update an existing Visit.

Throws:
DAOException

delete

void delete(Id aVisitId)
      throws DAOException
Delete a Visit.

If an item is linked to this Visit, 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