Interface DelegatePreparedQuery<E,​R>

    • Method Detail

      • getPreparedQueryDelegate

        PreparedQuery<E,​R> getPreparedQueryDelegate()
        Returns:
        The delegate
      • getParameterInRole

        default <RT1> java.util.Optional<RT1> getParameterInRole​(@NonNull
                                                                 java.lang.String role,
                                                                 @NonNull
                                                                 java.lang.Class<RT1> type)
        Description copied from interface: PreparedDataOperation
        Return the value of the given parameter if the given role.
        Specified by:
        getParameterInRole in interface PreparedDataOperation<E>
        Type Parameters:
        RT1 - The generic type
        Parameters:
        role - The role
        type - The type
        Returns:
        An optional value.
      • getRepositoryType

        default java.lang.Class<?> getRepositoryType()
        Specified by:
        getRepositoryType in interface PreparedQuery<E,​R>
        Returns:
        The repository type.
      • getParameterValues

        @NonNull
        default java.util.Map<java.lang.String,​java.lang.Object> getParameterValues()
        Specified by:
        getParameterValues in interface PreparedQuery<E,​R>
        Returns:
        The named parameter values
      • getParameterArray

        default java.lang.Object[] getParameterArray()
        Specified by:
        getParameterArray in interface PreparedQuery<E,​R>
        Returns:
        The method parameters
      • getArguments

        default io.micronaut.core.type.Argument[] getArguments()
        Specified by:
        getArguments in interface PreparedQuery<E,​R>
        Returns:
        The method arguments
      • isDtoProjection

        default boolean isDtoProjection()
        Description copied from interface: StoredQuery
        Returns whether the query returns the actual entity or a Data Transfer Object (DTO) project. Defaults to false.
        Specified by:
        isDtoProjection in interface DelegateStoredQuery<E,​R>
        Specified by:
        isDtoProjection in interface StoredQuery<E,​R>
        Returns:
        Whether the query is a DTO projection query
      • getAttributes

        @NonNull
        default io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> getAttributes()
        Specified by:
        getAttributes in interface io.micronaut.core.attr.AttributeHolder
      • getAttribute

        @NonNull
        default java.util.Optional<java.lang.Object> getAttribute​(java.lang.CharSequence name)
        Specified by:
        getAttribute in interface io.micronaut.core.attr.AttributeHolder
      • getAttribute

        @NonNull
        default <T> java.util.Optional<T> getAttribute​(java.lang.CharSequence name,
                                                       java.lang.Class<T> type)
        Specified by:
        getAttribute in interface io.micronaut.core.attr.AttributeHolder