TrackService

com.j0h1.contour.admin.client.service

## Interface TrackService

- All Superinterfaces:
    com.google.gwt.user.client.rpc.RemoteService
  All Known Implementing Classes:
    TrackServiceImpl

      @RemoteServiceRelativePath(value="tracks")
      public interface TrackService
      extends com.google.gwt.user.client.rpc.RemoteService

  Remote service interface, defining methods to handle RPC calls from the client, concerning Track objects.
  Author:
    Johannes Riedmann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `delete(int trackId)` Calls DAOTrack to delete a track from the database.
    `java.util.ArrayList<Track>` | `findAll()` Calls DAOTrack to return all tracks persisted in the database.
    `void` | `persist(Track track)` Calls DAOTrack server-sided to persist a Track to the database.

- - ### Method Detail

    - #### persist

          void persist(Track track)
                throws DAOTrackException

      Calls DAOTrack server-sided to persist a Track to the database.
      Parameters:
        `track` - Track object to be persisted to database.
      Throws:
        `DAOTrackException` - If persisting image fails, provide specific feedback

    - #### delete

          void delete(int trackId)
               throws DAOTrackException

      Calls DAOTrack to delete a track from the database.
      Parameters:
        `trackId` - ID of Track to be deleted.
      Throws:
        `DAOTrackException` - If deletion of image fails, provide specific feedback

    - #### findAll

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

      Calls DAOTrack to return all tracks persisted in the database.
      Returns:
        List containing all Track objects persisted in the database.
      Throws:
        `DAOTrackException` - If query fails, provide specific feedback