DAOSession

com.j0h1.contour.admin.server.dao

## Interface DAOSession

- All Known Implementing Classes:
    DAOSessionImpl

      public interface DAOSession

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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int sessionId)` Deletes a session with specified sessionId from the database.
    `java.util.ArrayList<Session>` | `findAll()` Retrieves a list of all sessions (custom and track sessions) persisted in the database.

- - ### Method Detail

    - #### findAll

          java.util.ArrayList<Session> findAll()
                                        throws DAOSessionException

      Retrieves a list of all sessions (custom and track sessions) persisted in the database.
      Returns:
        List of all sessions in the database.
      Throws:
        `DAOSessionException` - If the query fails, specific feedback is returned

    - #### delete

          void delete(int sessionId)
               throws DAOSessionException

      Deletes a session with specified sessionId from the database. Along with the session, the drawings and score images are deleted. If the session is a custom session, the original data, as well as the edge data is deleted too.
      Parameters:
        `sessionId` - ID of the session to be deleted.
      Throws:
        `DAOSessionException` - If deletion fails, specific feedback is returned.