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, BindableParametersStoredQuery<E,R>, io.micronaut.core.naming.Named, PersistentEntityAwareQuery<E>, StoredDataOperation<R>, StoredQuery<E,R>
All Known Subinterfaces:
SqlPreparedQuery<E,R>
All Known Implementing Classes:
DefaultSqlPreparedQuery, DefaultSqlStoredQuery

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

    • isExpandableQuery

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

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

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

      Map<QueryParameterBinding,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
    • getQueryResultInfo

      @Nullable @Nullable QueryResultInfo getQueryResultInfo()
      Returns:
      the query result info
      Since:
      4.2.0