Interface DeleteReturningRepositoryOperations

All Superinterfaces:
io.micronaut.context.ApplicationContextProvider, io.micronaut.core.convert.ConversionServiceProvider, HintsCapableRepository, RepositoryOperations
All Known Implementing Classes:
DefaultJdbcRepositoryOperations

public interface DeleteReturningRepositoryOperations extends RepositoryOperations
A variation of RepositoryOperations that supports delete returning operations.
Since:
4.2.0
Author:
Denis Stepanov
  • Method Details

    • deleteReturning

      <E, R> R deleteReturning(@NonNull @NonNull DeleteReturningOperation<E,R> operation)
      Deletes the entity and returns a result.
      Type Parameters:
      E - The entity type
      R - The result type
      Parameters:
      operation - The operation
      Returns:
      The deleted entity
    • deleteAllReturning

      <E, R> List<R> deleteAllReturning(@NonNull @NonNull DeleteReturningBatchOperation<E,R> operation)
      Deletes the entities and returns a result.
      Type Parameters:
      E - The entity type
      R - The result type
      Parameters:
      operation - The operation
      Returns:
      The deleted entities