DAOPlayer

com.j0h1.contour.admin.server.dao

## Interface DAOPlayer

- All Known Implementing Classes:
    DAOPlayerImpl

      public interface DAOPlayer

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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int playerId)` Deletes the player with the specified playerId and all his drawing sessions/drawings (all data associated with this player).
    `java.util.ArrayList<Player>` | `findAll()` Returns all persisted players.

- - ### Method Detail

    - #### findAll

          java.util.ArrayList<Player> findAll()
                                       throws DAOPlayerException

      Returns all persisted players.
      Returns:
        see description
      Throws:
        `DAOPlayerException` - If query fails, provides specific feedback.

    - #### delete

          void delete(int playerId)
               throws DAOPlayerException

      Deletes the player with the specified playerId and all his drawing sessions/drawings (all data associated with this player).
      Parameters:
        `playerId` - ID of player to be deleted.
      Throws:
        `DAOPlayerException` - If deletion fails, provides specific feedback.