Interface MongoStoredQuery<E,R>
- Type Parameters:
E
- The entity typeR
- The result type
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider
,io.micronaut.core.annotation.AnnotationSource
,io.micronaut.core.naming.Named
,StoredDataOperation<R>
,StoredQuery<E,
R>
MongoDB's
StoredQuery
.- Since:
- 3.3.
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.runtime.StoredQuery
StoredQuery.OperationType
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiongetAggregation
(io.micronaut.aop.InvocationContext<?, ?> invocationContext) getDeleteMany
(io.micronaut.aop.InvocationContext<?, ?> invocationContext) getDeleteOne
(E entity) getFind
(io.micronaut.aop.InvocationContext<?, ?> invocationContext) getUpdateMany
(io.micronaut.aop.InvocationContext<?, ?> invocationContext) getUpdateOne
(E entity) boolean
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.core.naming.Named
getName
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getJoinPaths, getLimit, getOffset, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isRawQuery, isSingleResult, useNumericPlaceholders
-
Method Details
-
getRuntimePersistentEntity
RuntimePersistentEntity<E> getRuntimePersistentEntity()- Returns:
- The persistent entity
-
isAggregate
boolean isAggregate()- Returns:
- Is aggregation query?
-
getAggregation
- Parameters:
invocationContext
- The invocation context to have query parameters extracted from- Returns:
- The data to execute the aggregation
-
getFind
- Parameters:
invocationContext
- The invocation context to have query parameters extracted from- Returns:
- The data to execute the find
-
getUpdateMany
- Parameters:
invocationContext
- The invocation context to have query parameters extracted from- Returns:
- The data to execute the update
-
getUpdateOne
- Parameters:
entity
- The entity to have query parameters extracted from- Returns:
- The data to execute the update
-
getDeleteMany
- Parameters:
invocationContext
- The invocation context to have query parameters extracted from- Returns:
- The data to execute the delete
-
getDeleteOne
- Parameters:
entity
- The entity to have query parameters extracted from- Returns:
- The data to execute the delete
-