PlayerServiceImpl

com.j0h1.contour.admin.server

## Class PlayerServiceImpl

- java.lang.Object
- - javax.servlet.GenericServlet
  - - javax.servlet.http.HttpServlet
    - - com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
      - - com.google.gwt.user.server.rpc.RemoteServiceServlet
        - - com.j0h1.contour.admin.server.PlayerServiceImpl

- All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, PlayerService, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

      public class PlayerServiceImpl
      extends com.google.gwt.user.server.rpc.RemoteServiceServlet
      implements PlayerService

  RemoteServiceServlet that implements methods defined in PlayerService.
  Author:
    Johannes Riedmann
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private static long` | `serialVersionUID`

    - ### Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

      `perThreadRequest, perThreadResponse`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PlayerServiceImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int playerId)` Deletes a player from the database.
    `java.util.ArrayList<Player>` | `findAll()` Returns all players persisted in the database.

    - ### Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet

      `checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse`

    - ### Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

      `doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent`

    - ### Methods inherited from class javax.servlet.http.HttpServlet

      `doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service`

    - ### Methods inherited from class javax.servlet.GenericServlet

      `destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### serialVersionUID

          private static final long serialVersionUID

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### PlayerServiceImpl

          public PlayerServiceImpl()

  - ### Method Detail

    - #### findAll

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

      Description copied from interface: `PlayerService`
      Returns all players persisted in the database.
      Specified by:
        `findAll` in interface `PlayerService`
      Returns:
        List of all Player objects.
      Throws:
        `DAOPlayerException` - If the query fails, specific feedback is provided.

    - #### delete

          public void delete(int playerId)
                      throws DAOPlayerException

      Description copied from interface: `PlayerService`
      Deletes a player from the database. If the player had sessions persisted in the database, they are deleted to, along with the images associated with them.
      Specified by:
        `delete` in interface `PlayerService`
      Parameters:
        `playerId` - ID of player to be deleted.
      Throws:
        `DAOPlayerException` - If deletion fails, specific feedback is provided.