public interface CrudMethods
| Modifier and Type | Method and Description |
|---|---|
Optional<Method> |
getDeleteMethod()
Returns the delete method of the repository.
|
Optional<Method> |
getFindAllMethod()
Returns the find all method of the repository.
|
Optional<Method> |
getFindOneMethod()
Returns the find one method of the repository.
|
Optional<Method> |
getSaveMethod()
Returns the method to be used for saving entities.
|
boolean |
hasDelete()
Returns whether the repository exposes a delete method.
|
boolean |
hasFindAllMethod()
Returns whether the repository exposes a find all method at all.
|
boolean |
hasFindOneMethod()
Returns whether the repository exposes a find one method.
|
boolean |
hasSaveMethod()
Returns whether the repository exposes a save method at all.
|
Optional<Method> getSaveMethod()
CrudRepository.save(Object).Optional.empty() if none exposed.hasSaveMethod()boolean hasSaveMethod()
Optional<Method> getFindAllMethod()
PagingAndSortingRepository's taking a Pageable or Sort instance.Optional.empty() if not available.hasFindAllMethod()boolean hasFindAllMethod()
Optional<Method> getFindOneMethod()
CrudRepository.findById(Object)Optional.empty() if not available.hasFindOneMethod()boolean hasFindOneMethod()
Optional<Method> getDeleteMethod()
Optional.empty() if not available.hasDelete()boolean hasDelete()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.