Interface LearnLevelAttemptDao


  • public interface LearnLevelAttemptDao
    Provides an interface with methods that perform actions on the LearnLevelAttempt table of the database.
    • Method Detail

      • insert

        Single<Long> insert​(LearnLevelAttempt attempt)
        Inserts a single attempt into the database.
        Parameters:
        attempt - The attempt to be inserted.
        Returns:
        A Single holding the id of the attempt that was inserted.
      • insert

        Single<List<Long>> insert​(LearnLevelAttempt... attempts)
        Inserts multiple attempts into the database.
        Parameters:
        attempts - The attempts to be inserted.
        Returns:
        A Single holding a List of ids of attempts that were inserted.
      • insert

        Single<List<Long>> insert​(Collection<LearnLevelAttempt> attempts)
        Inserts multiple attempts into the database.
        Parameters:
        attempts - The attempts to be inserted.
        Returns:
        A Single holding a List of ids of attempts that were inserted.
      • update

        Single<Integer> update​(LearnLevelAttempt attempt)
        Updates a single attempt in the database.
        Parameters:
        attempt - The attempt to be updated.
        Returns:
        A Single holding the number of updates performed.
      • update

        Single<Integer> update​(LearnLevelAttempt... attempts)
        Updates multiple attempts in the database.
        Parameters:
        attempts - The attempts to be updated.
        Returns:
        A Single holding the number of updates performed.
      • update

        Single<Integer> update​(Collection<LearnLevelAttempt> attempts)
        Updates multiple attempts in the database.
        Parameters:
        attempts - The attempts to be updated.
        Returns:
        A Single holding the number of updates performed.
      • delete

        Single<Integer> delete​(LearnLevelAttempt attempt)
        Deletes a single attempt from the database.
        Parameters:
        attempt - The attempt to be deleted.
        Returns:
        A Single holding the number of deletions performed.
      • delete

        Single<Integer> delete​(LearnLevelAttempt... attempts)
        Deletes multiple attempts from the database.
        Parameters:
        attempts - The attempts to be deleted.
        Returns:
        A Single holding the number of deletions performed.
      • delete

        Single<Integer> delete​(Collection<LearnLevelAttempt> attempts)
        Deletes multiple attempts from the database.
        Parameters:
        attempts - The attempts to be deleted.
        Returns:
        A Single holding the number of deletions performed.
      • select

        LiveData<LearnLevelAttempt> select​(long id)
        Queries the database for a specific attempt, based on id.
        Parameters:
        id - The id of the attempt.
        Returns:
        LiveData of the selected attempt.
      • selectAllWithPlayer

        LiveData<List<LearnLevelAttempt>> selectAllWithPlayer​(long id)
        Queries the database for all attempts made by a specific player.
        Parameters:
        id - The player's id.
        Returns:
        LiveData of a List of attempts made by the specified player.
      • selectHighestDifficultyWithPlayer

        LiveData<LearnLevelAttempt> selectHighestDifficultyWithPlayer​(long id)
        Queries the database for the attempt that had the highest difficulty rating for a specific player.
        Parameters:
        id - The player's id.
        Returns:
        LiveData of the attempt with the highest difficulty rating for the specified player.