@NoRepositoryBean public interface ReactiveCrudRepository<T,ID extends Serializable> extends Repository<T,ID>
Mono
,
Flux
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
count()
Returns the number of entities available.
|
reactor.core.publisher.Mono<Void> |
delete(ID id)
Deletes the entity with the given id.
|
reactor.core.publisher.Mono<Void> |
delete(Iterable<? extends T> entities)
Deletes the given entities.
|
reactor.core.publisher.Mono<Void> |
delete(org.reactivestreams.Publisher<? extends T> entityStream)
Deletes the given entities.
|
reactor.core.publisher.Mono<Void> |
delete(T entity)
Deletes a given entity.
|
reactor.core.publisher.Mono<Void> |
deleteAll()
Deletes all entities managed by the repository.
|
reactor.core.publisher.Mono<Boolean> |
exists(ID id)
Returns whether an entity with the given id exists.
|
reactor.core.publisher.Mono<Boolean> |
exists(reactor.core.publisher.Mono<ID> id)
Returns whether an entity with the given id exists supplied by a
Mono . |
reactor.core.publisher.Flux<T> |
findAll()
Returns all instances of the type.
|
reactor.core.publisher.Flux<T> |
findAll(Iterable<ID> ids)
Returns all instances of the type with the given IDs.
|
reactor.core.publisher.Flux<T> |
findAll(org.reactivestreams.Publisher<ID> idStream)
Returns all instances of the type with the given IDs.
|
reactor.core.publisher.Mono<T> |
findOne(ID id)
Retrieves an entity by its id.
|
reactor.core.publisher.Mono<T> |
findOne(reactor.core.publisher.Mono<ID> id)
Retrieves an entity by its id supplied by a
Mono . |
<S extends T> |
save(Iterable<S> entities)
Saves all given entities.
|
<S extends T> |
save(org.reactivestreams.Publisher<S> entityStream)
Saves all given entities.
|
<S extends T> |
save(S entity)
Saves a given entity.
|
<S extends T> reactor.core.publisher.Mono<S> save(S entity)
entity
- <S extends T> reactor.core.publisher.Flux<S> save(Iterable<S> entities)
entities
- must not be null.IllegalArgumentException
- in case the given entity is null.<S extends T> reactor.core.publisher.Flux<S> save(org.reactivestreams.Publisher<S> entityStream)
entityStream
- must not be null.IllegalArgumentException
- in case the given Publisher
is null.reactor.core.publisher.Mono<T> findOne(ID id)
id
- must not be null.IllegalArgumentException
- if id
is nullreactor.core.publisher.Mono<T> findOne(reactor.core.publisher.Mono<ID> id)
Mono
.id
- must not be null.IllegalArgumentException
- if id
is nullreactor.core.publisher.Mono<Boolean> exists(ID id)
id
- must not be null.IllegalArgumentException
- if id
is nullreactor.core.publisher.Mono<Boolean> exists(reactor.core.publisher.Mono<ID> id)
Mono
.id
- must not be null.IllegalArgumentException
- if id
is nullreactor.core.publisher.Flux<T> findAll()
reactor.core.publisher.Flux<T> findAll(Iterable<ID> ids)
ids
- reactor.core.publisher.Flux<T> findAll(org.reactivestreams.Publisher<ID> idStream)
idStream
- reactor.core.publisher.Mono<Long> count()
reactor.core.publisher.Mono<Void> delete(ID id)
id
- must not be null.IllegalArgumentException
- in case the given id
is nullreactor.core.publisher.Mono<Void> delete(T entity)
entity
- IllegalArgumentException
- in case the given entity is null.reactor.core.publisher.Mono<Void> delete(Iterable<? extends T> entities)
entities
- IllegalArgumentException
- in case the given Iterable
is null.reactor.core.publisher.Mono<Void> delete(org.reactivestreams.Publisher<? extends T> entityStream)
entityStream
- IllegalArgumentException
- in case the given Publisher
is null.reactor.core.publisher.Mono<Void> deleteAll()
Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.