public interface BlockingReactorRepositoryOperations extends RepositoryOperations, ReactorReactiveCapableRepository
RepositoryOperations that blocks every call from ReactorReactiveRepositoryOperations.| Modifier and Type | Method and Description |
|---|---|
default <T> long |
count(PagedQuery<T> pagedQuery)
Counts all results for the given query.
|
default <T> int |
delete(DeleteOperation<T> operation)
Deletes the entity.
|
default <T> java.util.Optional<java.lang.Number> |
deleteAll(DeleteBatchOperation<T> operation)
Deletes all the entities of the given type.
|
default java.util.Optional<java.lang.Number> |
executeUpdate(PreparedQuery<?,java.lang.Number> preparedQuery)
Executes an update for the given query and parameter values.
|
default <T> boolean |
exists(PreparedQuery<T,java.lang.Boolean> preparedQuery)
Execute a query that checks for existence.
|
default <T> java.lang.Iterable<T> |
findAll(PagedQuery<T> query)
Finds all results for the given query.
|
default <T,R> java.lang.Iterable<R> |
findAll(PreparedQuery<T,R> preparedQuery)
Finds all results for the given query.
|
default <T> T |
findOne(java.lang.Class<T> type,
java.io.Serializable id)
Find one by ID.
|
default <T,R> R |
findOne(PreparedQuery<T,R> preparedQuery)
Find one by Query.
|
default <R> Page<R> |
findPage(PagedQuery<R> query)
Find a page for the given entity and pageable.
|
default <T> java.util.stream.Stream<T> |
findStream(PagedQuery<T> query)
Finds a stream for the given arguments.
|
default <T,R> java.util.stream.Stream<R> |
findStream(PreparedQuery<T,R> preparedQuery)
Finds all results for the given query.
|
default <T> T |
persist(InsertOperation<T> operation)
Persist the operation returning a possibly new entity.
|
default <T> java.lang.Iterable<T> |
persistAll(InsertBatchOperation<T> operation)
Persist all the given entities.
|
default <T> T |
update(UpdateOperation<T> operation)
Updates the entity for the given operation.
|
reactiveexecuteDelete, getEntity, getQueryHints, updateAll@Nullable
default <T> T findOne(@NonNull
java.lang.Class<T> type,
@NonNull
java.io.Serializable id)
RepositoryOperationsfindOne in interface RepositoryOperationsT - The generic typetype - The typeid - The id@Nullable
default <T,R> R findOne(@NonNull
PreparedQuery<T,R> preparedQuery)
RepositoryOperationsfindOne in interface RepositoryOperationsT - The generic resultTypeR - The result typepreparedQuery - The prepared query@NonNull
default <T,R> java.lang.Iterable<R> findAll(@NonNull
PreparedQuery<T,R> preparedQuery)
RepositoryOperationsfindAll in interface RepositoryOperationsT - The entity typeR - The result typepreparedQuery - The prepared query@NonNull
default <T,R> java.util.stream.Stream<R> findStream(@NonNull
PreparedQuery<T,R> preparedQuery)
RepositoryOperationsfindStream in interface RepositoryOperationsT - The entity typeR - The result typepreparedQuery - The prepared query@NonNull
default <T> T persist(@NonNull
InsertOperation<T> operation)
RepositoryOperationspersist in interface RepositoryOperationsT - The generic typeoperation - The operation@NonNull
default <T> T update(@NonNull
UpdateOperation<T> operation)
RepositoryOperationsupdate in interface RepositoryOperationsT - The generic typeoperation - The operation@NonNull
default <T> java.lang.Iterable<T> persistAll(@NonNull
InsertBatchOperation<T> operation)
RepositoryOperationspersistAll in interface RepositoryOperationsT - The generic typeoperation - The operation@NonNull
default java.util.Optional<java.lang.Number> executeUpdate(@NonNull
PreparedQuery<?,java.lang.Number> preparedQuery)
RepositoryOperationsexecuteUpdate in interface RepositoryOperationspreparedQuery - The prepared querydefault <T> int delete(@NonNull
DeleteOperation<T> operation)
RepositoryOperationsdelete in interface RepositoryOperationsT - The generic typeoperation - The operationdefault <T> java.util.Optional<java.lang.Number> deleteAll(@NonNull
DeleteBatchOperation<T> operation)
RepositoryOperationsdeleteAll in interface RepositoryOperationsT - The generic typeoperation - The operationdefault <T> boolean exists(@NonNull
PreparedQuery<T,java.lang.Boolean> preparedQuery)
RepositoryOperationsexists in interface RepositoryOperationsT - The generic resultTypepreparedQuery - The prepared querydefault <R> Page<R> findPage(@NonNull PagedQuery<R> query)
RepositoryOperationsfindPage in interface RepositoryOperationsR - The entity generic typequery - The query@NonNull
default <T> java.lang.Iterable<T> findAll(@NonNull
PagedQuery<T> query)
RepositoryOperationsfindAll in interface RepositoryOperationsT - The generic typequery - The root entitydefault <T> long count(PagedQuery<T> pagedQuery)
RepositoryOperationscount in interface RepositoryOperationsT - The generic typepagedQuery - The paged query@NonNull
default <T> java.util.stream.Stream<T> findStream(@NonNull
PagedQuery<T> query)
RepositoryOperationsfindStream in interface RepositoryOperationsT - The generic typequery - The query