T - Entity type.I - Entity id type.public interface Repository<T,I>
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
deleteById(I id)
Removes an entity with I corresponding to the
I argument from this repository. |
reactor.core.publisher.Mono<Boolean> |
existByProperty(String propertyName,
Object propertyValue)
Determines if a entity with property corresponding to the
propertyName argument
and property value matching the propertyValue exists in this repository. |
reactor.core.publisher.Mono<Boolean> |
existsById(I id)
Determines if an entity corresponding to the
I argument exists in this repository. |
reactor.core.publisher.Flux<T> |
findAll()
Returns an
Iterable of all entities in this repository. |
reactor.core.publisher.Mono<T> |
findById(I id)
Attempts to return an entity corresponding to the
I argument in this repository. |
reactor.core.publisher.Mono<T> |
save(I id,
T entity)
Saves the
entity entity to this repository using the I argument. |
reactor.core.publisher.Mono<Boolean> existByProperty(String propertyName, Object propertyValue)
propertyName argument
and property value matching the propertyValue exists in this repository.propertyName - The entity property name search criteria.propertyValue - The entity property value search criteria.reactor.core.publisher.Mono<T> findById(I id)
I argument in this repository.id - The entity I to return.reactor.core.publisher.Mono<Boolean> existsById(I id)
I argument exists in this repository.id - Search entity I criteria.reactor.core.publisher.Mono<T> save(I id, T entity)
entity entity to this repository using the I argument.id - The entity I.entity - The entity to save.reactor.core.publisher.Mono<Void> deleteById(I id)
I argument from this repository.id - The I of the entity to be deleted.reactor.core.publisher.Flux<T> findAll()
Iterable of all entities in this repository.Iterable.Copyright © 2015–2019. All rights reserved.