Skip to content

Commit

Permalink
Rename warp to entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakubk15 committed Jan 10, 2025
1 parent 602d353 commit 93ef8e4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ protected AbstractRepositoryOrmLite(DatabaseManager databaseManager, Scheduler s
this.scheduler = scheduler;
}

protected <T> CompletableFuture<Dao.CreateOrUpdateStatus> save(Class<T> type, T warp) {
return this.action(type, dao -> dao.createOrUpdate(warp));
protected <T> CompletableFuture<Dao.CreateOrUpdateStatus> save(Class<T> type, T entity) {
return this.action(type, dao -> dao.createOrUpdate(entity));
}

protected <T> CompletableFuture<T> saveIfNotExist(Class<T> type, T warp) {
return this.action(type, dao -> dao.createIfNotExists(warp));
protected <T> CompletableFuture<T> saveIfNotExist(Class<T> type, T entity) {
return this.action(type, dao -> dao.createIfNotExists(entity));
}

protected <T, ID> CompletableFuture<T> select(Class<T> type, ID id) {
Expand All @@ -37,8 +37,8 @@ protected <T, ID> CompletableFuture<Optional<T>> selectSafe(Class<T> type, ID id
return this.action(type, dao -> Optional.ofNullable(dao.queryForId(id)));
}

protected <T> CompletableFuture<Integer> delete(Class<T> type, T warp) {
return this.action(type, dao -> dao.delete(warp));
protected <T> CompletableFuture<Integer> delete(Class<T> type, T entity) {
return this.action(type, dao -> dao.delete(entity));
}

protected <T> CompletableFuture<Integer> deleteAll(Class<T> type) {
Expand Down

0 comments on commit 93ef8e4

Please sign in to comment.