T
- the entity to obtain an id fromID
- the ID type of the entitypublic final class GetIdInterceptor<T,ID>
extends io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<T,ID>
implements io.micronaut.data.intercept.DataInterceptor<T,ID>
DataInterceptor
allowing AbstractCoherenceRepository
instances
to obtain the Id
of the provided entity.Modifier | Constructor and Description |
---|---|
protected |
GetIdInterceptor(io.micronaut.data.operations.RepositoryOperations operations)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ID |
intercept(io.micronaut.data.intercept.RepositoryMethodKey methodKey,
io.micronaut.aop.MethodInvocationContext<T,ID> context) |
convertNumberArgumentIfNecessary, count, findEntitiesParameter, findEntityParameter, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getRequiredEntity, getRequiredRootEntity, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, instantiateEntity, isNullable, isNumber, prepareCountQuery, prepareQuery, prepareQuery, validateNullArguments