Package io.micronaut.data.operations
Interface DeleteReturningRepositoryOperations
- All Superinterfaces:
io.micronaut.context.ApplicationContextProvider
,io.micronaut.core.convert.ConversionServiceProvider
,HintsCapableRepository
,RepositoryOperations
- All Known Implementing Classes:
DefaultJdbcRepositoryOperations
A variation of
RepositoryOperations
that supports delete returning operations.- Since:
- 4.2.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescription<E,
R> List<R> deleteAllReturning
(@NonNull DeleteReturningBatchOperation<E, R> operation) Deletes the entities and returns a result.<E,
R> R deleteReturning
(@NonNull DeleteReturningOperation<E, R> operation) Deletes the entity and returns a result.Methods inherited from interface io.micronaut.context.ApplicationContextProvider
getApplicationContext
Methods inherited from interface io.micronaut.core.convert.ConversionServiceProvider
getConversionService
Methods inherited from interface io.micronaut.data.operations.HintsCapableRepository
getQueryHints
Methods inherited from interface io.micronaut.data.operations.RepositoryOperations
count, delete, deleteAll, execute, executeDelete, executeUpdate, exists, findAll, findAll, findOne, findOne, findPage, findStream, findStream, getEntity, persist, persistAll, update, updateAll
-
Method Details
-
deleteReturning
Deletes the entity and returns a result.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
operation
- The operation- Returns:
- The deleted entity
-
deleteAllReturning
Deletes the entities and returns a result.- Type Parameters:
E
- The entity typeR
- The result type- Parameters:
operation
- The operation- Returns:
- The deleted entities
-