Interface LearnLevelAttemptDao
-
public interface LearnLevelAttemptDaoProvides an interface with methods that perform actions on theLearnLevelAttempttable of the database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Single<Integer>delete(LearnLevelAttempt attempt)Deletes a single attempt from the database.Single<Integer>delete(LearnLevelAttempt... attempts)Deletes multiple attempts from the database.Single<Integer>delete(Collection<LearnLevelAttempt> attempts)Deletes multiple attempts from the database.Single<Long>insert(LearnLevelAttempt attempt)Inserts a single attempt into the database.Single<List<Long>>insert(LearnLevelAttempt... attempts)Inserts multiple attempts into the database.Single<List<Long>>insert(Collection<LearnLevelAttempt> attempts)Inserts multiple attempts into the database.LiveData<LearnLevelAttempt>select(long id)Queries the database for a specific attempt, based on id.LiveData<List<LearnLevelAttempt>>selectAll()Queries the database for all attempts.LiveData<List<LearnLevelAttempt>>selectAllWithPlayer(long id)Queries the database for all attempts made by a specific player.LiveData<LearnLevelAttempt>selectHighestDifficultyWithPlayer(long id)Queries the database for the attempt that had the highest difficulty rating for a specific player.Single<Integer>update(LearnLevelAttempt attempt)Updates a single attempt in the database.Single<Integer>update(LearnLevelAttempt... attempts)Updates multiple attempts in the database.Single<Integer>update(Collection<LearnLevelAttempt> attempts)Updates multiple attempts in 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
Singleholding 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
Singleholding aListof 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
Singleholding aListof 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
Singleholding 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
Singleholding 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
Singleholding 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
Singleholding 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
Singleholding 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
Singleholding 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:
LiveDataof the selected attempt.
-
selectAll
LiveData<List<LearnLevelAttempt>> selectAll()
Queries the database for all attempts.- Returns:
LiveDataof aListof attempts.
-
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:
LiveDataof aListof 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:
LiveDataof the attempt with the highest difficulty rating for the specified player.
-
-