public interface ReactiveRepositoryOperations
Modifier and Type | Method and Description |
---|---|
<T> org.reactivestreams.Publisher<java.lang.Long> |
count(PagedQuery<T> pagedQuery)
Counts all results for the given query.
|
<T> org.reactivestreams.Publisher<java.lang.Number> |
delete(DeleteOperation<T> operation)
Deletes the entity.
|
<T> org.reactivestreams.Publisher<java.lang.Number> |
deleteAll(DeleteBatchOperation<T> operation)
Deletes all the entities of the given type.
|
default org.reactivestreams.Publisher<java.lang.Number> |
executeDelete(PreparedQuery<?,java.lang.Number> preparedQuery)
Executes a batch delete for the given query and parameter values.
|
org.reactivestreams.Publisher<java.lang.Number> |
executeUpdate(PreparedQuery<?,java.lang.Number> preparedQuery)
Executes an update for the given query and parameter values.
|
<T> org.reactivestreams.Publisher<java.lang.Boolean> |
exists(PreparedQuery<T,java.lang.Boolean> preparedQuery)
Check with an record exists for the given query.
|
<T> org.reactivestreams.Publisher<T> |
findAll(PagedQuery<T> pagedQuery)
Finds all results for the given query.
|
<T,R> org.reactivestreams.Publisher<R> |
findAll(PreparedQuery<T,R> preparedQuery)
Finds all results for the given query.
|
<T> org.reactivestreams.Publisher<T> |
findOne(java.lang.Class<T> type,
java.io.Serializable id)
Find one by ID.
|
<T,R> org.reactivestreams.Publisher<R> |
findOne(PreparedQuery<T,R> preparedQuery)
Find one by Query.
|
<T> org.reactivestreams.Publisher<T> |
findOptional(java.lang.Class<T> type,
java.io.Serializable id)
Find one by ID.
|
<T,R> org.reactivestreams.Publisher<R> |
findOptional(PreparedQuery<T,R> preparedQuery)
Find one by Query.
|
<R> org.reactivestreams.Publisher<Page<R>> |
findPage(PagedQuery<R> pagedQuery)
Find a page for the given entity and pageable.
|
<T> org.reactivestreams.Publisher<T> |
persist(InsertOperation<T> operation)
Persist the entity returning a possibly new entity.
|
<T> org.reactivestreams.Publisher<T> |
persistAll(InsertBatchOperation<T> operation)
Persist all the given entities.
|
<T> org.reactivestreams.Publisher<T> |
update(UpdateOperation<T> operation)
Updates the entity returning a possibly new entity.
|
@NonNull @SingleResult <T> org.reactivestreams.Publisher<T> findOne(@NonNull java.lang.Class<T> type, @NonNull java.io.Serializable id)
T
- The generic typetype
- The typeid
- The idEmptyResultException
- if the result couldn't be retrieved<T> org.reactivestreams.Publisher<java.lang.Boolean> exists(@NonNull PreparedQuery<T,java.lang.Boolean> preparedQuery)
T
- The declaring typepreparedQuery
- The query@SingleResult @NonNull <T,R> org.reactivestreams.Publisher<R> findOne(@NonNull PreparedQuery<T,R> preparedQuery)
T
- The generic resultTypeR
- The result typepreparedQuery
- The prepared queryEmptyResultException
- if the result couldn't be retrieved@NonNull @SingleResult <T> org.reactivestreams.Publisher<T> findOptional(@NonNull java.lang.Class<T> type, @NonNull java.io.Serializable id)
T
- The generic typetype
- The typeid
- The idEmptyResultException
- if the result couldn't be retrieved@SingleResult @NonNull <T,R> org.reactivestreams.Publisher<R> findOptional(@NonNull PreparedQuery<T,R> preparedQuery)
T
- The generic resultTypeR
- The result typepreparedQuery
- The prepared query@NonNull <T> org.reactivestreams.Publisher<T> findAll(PagedQuery<T> pagedQuery)
T
- The generic typepagedQuery
- The paged query@SingleResult @NonNull <T> org.reactivestreams.Publisher<java.lang.Long> count(PagedQuery<T> pagedQuery)
T
- The generic typepagedQuery
- The paged query@NonNull <T,R> org.reactivestreams.Publisher<R> findAll(@NonNull PreparedQuery<T,R> preparedQuery)
T
- The entity typeR
- The result typepreparedQuery
- The prepared query@SingleResult @NonNull <T> org.reactivestreams.Publisher<T> persist(@NonNull InsertOperation<T> operation)
T
- The generic typeoperation
- The entity operation@SingleResult @NonNull <T> org.reactivestreams.Publisher<T> update(@NonNull UpdateOperation<T> operation)
T
- The generic typeoperation
- The entity operation@NonNull <T> org.reactivestreams.Publisher<T> persistAll(@NonNull InsertBatchOperation<T> operation)
T
- The generic typeoperation
- The batch operation@NonNull @SingleResult org.reactivestreams.Publisher<java.lang.Number> executeUpdate(@NonNull PreparedQuery<?,java.lang.Number> preparedQuery)
preparedQuery
- The prepared query@NonNull @SingleResult default org.reactivestreams.Publisher<java.lang.Number> executeDelete(@NonNull PreparedQuery<?,java.lang.Number> preparedQuery)
preparedQuery
- The prepared query@SingleResult @NonNull <T> org.reactivestreams.Publisher<java.lang.Number> delete(@NonNull DeleteOperation<T> operation)
T
- The generic typeoperation
- The batch operation@SingleResult @NonNull <T> org.reactivestreams.Publisher<java.lang.Number> deleteAll(@NonNull DeleteBatchOperation<T> operation)
T
- The generic typeoperation
- The batch operation@SingleResult @NonNull <R> org.reactivestreams.Publisher<Page<R>> findPage(@NonNull PagedQuery<R> pagedQuery)
R
- The entity generic typepagedQuery
- The paged query