public interface PersonRepository extends CrudRepository<Person,java.lang.Long>, PageableRepository<Person,java.lang.Long>
Modifier and Type | Method and Description |
---|---|
int |
count(java.lang.String name) |
int |
countByAgeGreaterThan(java.lang.Integer wrapper) |
int |
countByAgeLessThan(int wrapper) |
Slice<Person> |
find(Pageable pageable) |
int |
findAgeByName(java.lang.String name) |
java.util.List<Person> |
findAllByName(java.lang.String name) |
java.util.List<Person> |
findAllByNameLike(java.lang.String name,
Pageable pageable) |
Person |
findByName(java.lang.String name) |
java.util.List<Person> |
findByNameLike(java.lang.String name) |
Page<Person> |
findByNameLike(java.lang.String name,
Pageable pageable) |
java.util.List<Person> |
findByNameLikeOrderByAge(java.lang.String name) |
java.util.List<Person> |
findByNameLikeOrderByAgeDesc(java.lang.String name) |
int |
findMaxAgeByNameLike(java.lang.String name) |
int |
findMinAgeByNameLike(java.lang.String name) |
java.util.Optional<Person> |
findOptionalByName(java.lang.String name) |
Page<Person> |
findPeople(java.lang.String n,
Pageable pageable) |
Person |
get(java.lang.Long id) |
long |
getAvgAgeByNameLike(java.lang.String name) |
Person |
getByName(java.lang.String name) |
int |
getSumAgeByNameLike(java.lang.String name) |
java.util.List<Person> |
list(Pageable pageable) |
java.util.List<Person> |
listTop10(Sort sort) |
Slice<Person> |
queryByNameLike(java.lang.String name,
Pageable pageable) |
java.util.List<java.lang.Integer> |
readAgeByNameLike(java.lang.String name) |
Person |
save(java.lang.String name,
int age) |
void |
updatePerson(java.lang.Long id,
java.lang.String name) |
findAll, findAll
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findById, save, saveAll
int countByAgeGreaterThan(java.lang.Integer wrapper)
int countByAgeLessThan(int wrapper)
Person save(java.lang.String name, int age)
Person get(java.lang.Long id)
void updatePerson(@Id java.lang.Long id, @Parameter(value="name") java.lang.String name)
int count(java.lang.String name)
@Nullable Person findByName(java.lang.String name)
Person getByName(java.lang.String name)
java.util.List<Person> findByNameLike(java.lang.String name)
int findAgeByName(java.lang.String name)
int findMaxAgeByNameLike(java.lang.String name)
int findMinAgeByNameLike(java.lang.String name)
int getSumAgeByNameLike(java.lang.String name)
long getAvgAgeByNameLike(java.lang.String name)
java.util.List<java.lang.Integer> readAgeByNameLike(java.lang.String name)
java.util.List<Person> findByNameLikeOrderByAge(java.lang.String name)
java.util.List<Person> findByNameLikeOrderByAgeDesc(java.lang.String name)
java.util.Optional<Person> findOptionalByName(java.lang.String name)
java.util.List<Person> findAllByName(java.lang.String name)
java.util.List<Person> findAllByNameLike(java.lang.String name, Pageable pageable)