DAOTrack

com.j0h1.contour.admin.server.dao

## Interface DAOTrack

- All Known Implementing Classes:
    DAOTrackImpl

      public interface DAOTrack

  Defines database access methods concerning Track objects.
  Author:
    Johannes Riedmann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int trackId)` Deletes a track from the database, if there are no images assigned to it.
    `java.util.ArrayList<Track>` | `findAll()` Returns all non-deleted tracks persisted in the database.
    `void` | `persist(Track track)` Persists a track to the database.

- - ### Method Detail

    - #### persist

          void persist(Track track)
                throws DAOTrackException

      Persists a track to the database.
      Parameters:
        `track` - Track object that has to be persisted.
      Throws:
        `DAOTrackException` - If persisting the track fails, specific feedback is given.

    - #### delete

          void delete(int trackId)
               throws DAOTrackException

      Deletes a track from the database, if there are no images assigned to it. If images are assigned to the track, the delete flag is set.
      Parameters:
        `trackId` - Id of track to be deleted.
      Throws:
        `DAOTrackException` - If deletion fails, specific feedback is given.

    - #### findAll

          java.util.ArrayList<Track> findAll()
                                      throws DAOTrackException

      Returns all non-deleted tracks persisted in the database.
      Returns:
        See description.
      Throws:
        `DAOTrackException` - If query fails, specific feedback is given.