org.dartra.framework.dao
Interface BoardDAO

All Superinterfaces:
DataAccessObject

public interface BoardDAO
extends DataAccessObject

Data access object for boards and their zones.

Note that a Zone object is not strictly speaking a dependent object of the Board object it belongs to (there are direct references to zones from other objects, e.g. a Throw). However, a zone is owned by a particular board, so the 2 classes are very closely linked. This is the reason why the persistance for both is handled by a single DAO.

Author:
Erwin Vervaet

Method Summary
 void addBoard(Board board)
          Add given board to the persistent store.
 Board getBoard(java.lang.String implClass)
          Load the board with given implementation class from the persistent store.
 java.util.Vector getBoards()
          Load all board objects available in the persistent store.
 Board getBoardWithId(java.lang.Object id)
          Load the board with specified persistent store id.
 
Methods inherited from interface org.dartra.framework.dao.DataAccessObject
close, getConnection, getDAOFactory, init
 

Method Detail

addBoard

public void addBoard(Board board)
              throws DataAccessException

Add given board to the persistent store.

Throws:
DataAccessException - When there is a problem accessing the persistent store, for instance when the given board is already present.

getBoardWithId

public Board getBoardWithId(java.lang.Object id)
                     throws DataAccessException

Load the board with specified persistent store id.

Throws:
DataAccessException - When there is a problem accessing the persistent store.

getBoard

public Board getBoard(java.lang.String implClass)
               throws DataAccessException

Load the board with given implementation class from the persistent store.

Throws:
DataAccessException - When there is a problem accessing the persistent store.

getBoards

public java.util.Vector getBoards()
                           throws DataAccessException

Load all board objects available in the persistent store.

Throws:
DataAccessException - When there is a problem accessing the persistent store.