Interface SqlStoredQuery<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, StoredDataOperation<R>, StoredQuery<E,​R>
    All Known Subinterfaces:
    SqlPreparedQuery<E,​R>

    @Internal
    public interface SqlStoredQuery<E,​R>
    extends StoredQuery<E,​R>
    SQL version of StoredQuery carrying extra SQL related data.
    Since:
    3.5.0
    Author:
    Denis Stepanov
    • Method Detail

      • isExpandableQuery

        boolean isExpandableQuery()
        Returns:
        true if query is expandable
      • getDialect

        Dialect getDialect()
        Get dialect.
        Returns:
        dialect
      • getQueryBuilder

        SqlQueryBuilder getQueryBuilder()
        Returns:
        query builder for possible modification in the prepared query
      • collectAutoPopulatedPreviousValues

        java.util.Map<QueryParameterBinding,​java.lang.Object> collectAutoPopulatedPreviousValues​(E entity)
        Collect auto-populated property values before pre-actions are triggered and property values are modified.
        Parameters:
        entity - The entity instance
        Returns:
        collected values
      • bindParameters

        void bindParameters​(SqlStoredQuery.Binder binder,
                            @Nullable
                            io.micronaut.aop.InvocationContext<?,​?> invocationContext,
                            @Nullable
                            E entity,
                            @Nullable
                            java.util.Map<QueryParameterBinding,​java.lang.Object> previousValues)
        Bind query parameters.
        Parameters:
        binder - The binder
        invocationContext - The invocation context
        entity - The entity
        previousValues - The previous auto-populated collected values