Interface MongoStoredQuery<E,​R>

  • Type Parameters:
    E - The entity type
    R - The result type
    All Superinterfaces:
    io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.naming.Named, io.micronaut.data.model.runtime.StoredDataOperation<R>, io.micronaut.data.model.runtime.StoredQuery<E,​R>

    public interface MongoStoredQuery<E,​R>
    extends io.micronaut.data.model.runtime.StoredQuery<E,​R>
    MongoDB's StoredQuery.
    Since:
    3.3.
    • Field Summary

      • Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

        EMPTY
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      MongoAggregation getAggregation​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)  
      MongoDelete getDeleteMany​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)  
      MongoDelete getDeleteOne​(E entity)  
      MongoFind getFind​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)  
      io.micronaut.data.model.runtime.RuntimePersistentEntity<E> getRuntimePersistentEntity()  
      MongoUpdate getUpdateMany​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)  
      MongoUpdate getUpdateOne​(E entity)  
      boolean isAggregate()  
      • Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider

        findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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.StoredDataOperation

        getTransactionDefinition
      • Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery

        getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getJoinFetchPaths, getLastUpdatedProperty, getParameterBinding, getParameterNames, getQuery, getQueryBindings, getQueryHints, getResultArgument, getResultDataType, getResultType, getRootEntity, hasInExpression, hasPageable, hasResultConsumer, isCount, isDtoProjection, isNative, isOptimisticLock, isRawQuery, isSingleResult, useNumericPlaceholders
    • Method Detail

      • getRuntimePersistentEntity

        io.micronaut.data.model.runtime.RuntimePersistentEntity<E> getRuntimePersistentEntity()
        Returns:
        The persistent entity
      • isAggregate

        boolean isAggregate()
        Returns:
        Is aggregation query?
      • getAggregation

        MongoAggregation getAggregation​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)
        Parameters:
        invocationContext - The invocation context to have query parameters extracted from
        Returns:
        The data to execute the aggregation
      • getFind

        MongoFind getFind​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)
        Parameters:
        invocationContext - The invocation context to have query parameters extracted from
        Returns:
        The data to execute the find
      • getUpdateMany

        MongoUpdate getUpdateMany​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)
        Parameters:
        invocationContext - The invocation context to have query parameters extracted from
        Returns:
        The data to execute the update
      • getUpdateOne

        MongoUpdate getUpdateOne​(E entity)
        Parameters:
        entity - The entity to have query parameters extracted from
        Returns:
        The data to execute the update
      • getDeleteMany

        MongoDelete getDeleteMany​(io.micronaut.aop.InvocationContext<?,​?> invocationContext)
        Parameters:
        invocationContext - The invocation context to have query parameters extracted from
        Returns:
        The data to execute the delete
      • getDeleteOne

        MongoDelete getDeleteOne​(E entity)
        Parameters:
        entity - The entity to have query parameters extracted from
        Returns:
        The data to execute the delete