Interface PersonAsyncRepository
- All Superinterfaces:
AsyncCrudRepository<Person,,Long> AsyncJpaSpecificationExecutor<Person>,AsyncPageableRepository<Person,,Long> GenericRepository<Person,Long>
public interface PersonAsyncRepository
extends AsyncPageableRepository<Person,Long>, AsyncJpaSpecificationExecutor<Person>
-
Method Summary
Modifier and TypeMethodDescriptionadd1(int input) add1Aliased(int input) deleteByNameLike(String name) deleteCustom(List<Person> people) deleteCustomSingle(Person person) findByName(String name) findByNameLike(String name) findByNameLike(String name, Pageable pageable) findPeople(String n, Pageable pageable) getMaxId()queryByName(String name) saveCustom(List<Person> people) saveCustomSingle(Person people) updateNamesCustom(String newName, String oldName) updatePeople(List<Person> people) updatePerson(Long id, String name) Methods inherited from interface io.micronaut.data.repository.async.AsyncCrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, save, saveAll, update, updateAllMethods inherited from interface io.micronaut.data.repository.jpa.async.AsyncJpaSpecificationExecutor
count, count, deleteAll, deleteAll, exists, exists, findAll, findAll, findAll, findAll, findAll, findAll, findOne, findOne, updateAllMethods inherited from interface io.micronaut.data.repository.async.AsyncPageableRepository
findAll, findAll
-
Method Details
-
save
-
getById
-
updatePerson
-
list
-
count
-
findByName
-
getByName
-
queryByName
-
deleteByNameLike
-
findByNameLike
-
findByNameLike
-
findPeople
@Query(value="select * from person person_ where person_.name like :n", countQuery="select count(*) from person person_ where person_.name like :n") CompletableFuture<Page<Person>> findPeople(String n, Pageable pageable) -
getMaxId
-
updatePeople
-
updateNamesCustom
@Query("UPDATE person SET name = :newName WHERE (name = :oldName)") CompletableFuture<Long> updateNamesCustom(String newName, String oldName) -
saveCustom
@Query("INSERT INTO person(name, age, enabled) VALUES (:name, :age, TRUE)") CompletableFuture<Long> saveCustom(List<Person> people) -
saveCustomSingle
@Query("INSERT INTO person(name, age, enabled) VALUES (:name, :age, TRUE)") CompletableFuture<Long> saveCustomSingle(Person people) -
remove
-
erase
-
erase
-
deleteCustom
@Query("DELETE FROM person WHERE name = :name") CompletableFuture<Integer> deleteCustom(List<Person> people) -
deleteCustomSingle
@Query("DELETE FROM person WHERE name = :name") CompletableFuture<Integer> deleteCustomSingle(Person person) -
deleteCustomSingleNoEntity
@Query("DELETE FROM person WHERE name = :xyz") CompletableFuture<Integer> deleteCustomSingleNoEntity(String xyz) -
add1
-
add1Aliased
-