T
- The declaring typepublic class DefaultCountInterceptor<T> extends AbstractQueryInterceptor<T,java.lang.Number> implements CountInterceptor<T>
CountInterceptor
.operations
Modifier | Constructor and Description |
---|---|
protected |
DefaultCountInterceptor(RepositoryOperations datastore)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
intercept(RepositoryMethodKey methodKey,
io.micronaut.aop.MethodInvocationContext<T,java.lang.Number> context)
Intercepts a data method execution.
|
convertNumberArgumentIfNecessary, getDeleteAllBatchOperation, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getPageable, getPagedQuery, getRequiredEntity, getRequiredRootEntity, getUpdateOperation, instantiateEntity, isNullable, prepareCountQuery, prepareQuery, prepareQuery, validateNullArguments
protected DefaultCountInterceptor(@NonNull RepositoryOperations datastore)
datastore
- The operationspublic java.lang.Number intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<T,java.lang.Number> context)
DataInterceptor
intercept
in interface DataInterceptor<T,java.lang.Number>
methodKey
- The method keycontext
- The context