org.dartra.framework.dao
Interface DartsSetDAO

All Superinterfaces:
DataAccessObject

public interface DartsSetDAO
extends DataAccessObject

Data access object for darts sets.

Author:
Erwin Vervaet

Method Summary
 void addDartsSet(DartsSet ds)
          Add given darts set to the persistent store.
 DartsSet getDartsSet(java.lang.String spec, java.lang.String name, java.lang.String brand, int weight)
          Load the darts set with given properties from the persistent store.
 java.util.Vector getDartsSets()
          Load all darts set objects available in the persistent store.
 DartsSet getDartsSetWithId(java.lang.Object id)
          Load the darts set with specified persistent store id.
 java.util.Vector getUserDartsSets(User user)
          Load all the darts sets of given user.
 
Methods inherited from interface org.dartra.framework.dao.DataAccessObject
close, getConnection, getDAOFactory, init
 

Method Detail

addDartsSet

public void addDartsSet(DartsSet ds)
                 throws DataAccessException

Add given darts set to the persistent store.

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

getDartsSetWithId

public DartsSet getDartsSetWithId(java.lang.Object id)
                           throws DataAccessException

Load the darts set with specified persistent store id.

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

getDartsSet

public DartsSet getDartsSet(java.lang.String spec,
                            java.lang.String name,
                            java.lang.String brand,
                            int weight)
                     throws DataAccessException

Load the darts set with given properties from the persistent store.

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

getDartsSets

public java.util.Vector getDartsSets()
                              throws DataAccessException

Load all darts set objects available in the persistent store.

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

getUserDartsSets

public java.util.Vector getUserDartsSets(User user)
                                  throws DataAccessException

Load all the darts sets of given user. The user should be present in the persistent store.

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