E - The entity typeRT - The result type@Internal public final class DefaultPreparedQuery<E,RT> extends io.micronaut.data.model.runtime.DefaultStoredDataOperation<RT> implements DelegateStoredQuery<E,RT>, io.micronaut.data.model.runtime.PreparedQuery<E,RT>
| Constructor and Description |
|---|
DefaultPreparedQuery(io.micronaut.aop.MethodInvocationContext<?,?> context,
io.micronaut.data.model.runtime.StoredQuery<E,RT> storedQuery,
java.lang.String finalQuery,
io.micronaut.data.model.Pageable pageable,
boolean dtoProjection,
io.micronaut.core.convert.ConversionService<?> conversionService)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
io.micronaut.core.type.Argument[] |
getArguments() |
java.util.Optional<java.lang.Object> |
getAttribute(java.lang.CharSequence name) |
<T> java.util.Optional<T> |
getAttribute(java.lang.CharSequence name,
java.lang.Class<T> type) |
io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> |
getAttributes() |
io.micronaut.aop.MethodInvocationContext<?,?> |
getContext() |
io.micronaut.data.model.Pageable |
getPageable() |
java.lang.Object[] |
getParameterArray() |
<RT1> java.util.Optional<RT1> |
getParameterInRole(java.lang.String role,
java.lang.Class<RT1> type) |
java.util.Map<java.lang.String,java.lang.Object> |
getParameterValues() |
java.lang.String |
getQuery() |
java.util.Map<java.lang.String,java.lang.Object> |
getQueryHints() |
java.lang.Class<?> |
getRepositoryType() |
java.lang.Class<E> |
getRootEntity() |
io.micronaut.data.model.runtime.StoredQuery<E,RT> |
getStoredQueryDelegate() |
boolean |
isDtoProjection() |
getAnnotationMetadata, getResultArgument, getTransactionDefinitionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getJoinFetchPaths, getName, getQueryBindings, getResultArgument, getResultDataType, getResultType, getTransactionDefinition, hasInExpression, hasPageable, hasResultConsumer, isCount, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholdersgetIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getLastUpdatedProperty, getParameterBinding, getParameterNamesfindAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypepublic DefaultPreparedQuery(io.micronaut.aop.MethodInvocationContext<?,?> context,
io.micronaut.data.model.runtime.StoredQuery<E,RT> storedQuery,
java.lang.String finalQuery,
@NonNull
io.micronaut.data.model.Pageable pageable,
boolean dtoProjection,
io.micronaut.core.convert.ConversionService<?> conversionService)
context - The execution contextstoredQuery - The stored queryfinalQuery - The final querypageable - The pageabledtoProjection - Whether the prepared query is a dto projectionconversionService - The conversion servicepublic io.micronaut.aop.MethodInvocationContext<?,?> getContext()
public java.lang.Class<E> getRootEntity()
getRootEntity in interface io.micronaut.data.model.runtime.PagedQuery<E>getRootEntity in interface io.micronaut.data.model.runtime.StoredQuery<E,RT>getRootEntity in interface DelegateStoredQuery<E,RT>public java.util.Map<java.lang.String,java.lang.Object> getQueryHints()
getQueryHints in interface io.micronaut.data.model.runtime.PagedQuery<E>getQueryHints in interface io.micronaut.data.model.runtime.PreparedQuery<E,RT>getQueryHints in interface io.micronaut.data.model.runtime.StoredQuery<E,RT>getQueryHints in interface DelegateStoredQuery<E,RT>public io.micronaut.data.model.runtime.StoredQuery<E,RT> getStoredQueryDelegate()
getStoredQueryDelegate in interface DelegateStoredQuery<E,RT>public <RT1> java.util.Optional<RT1> getParameterInRole(@NonNull
java.lang.String role,
@NonNull
java.lang.Class<RT1> type)
getParameterInRole in interface io.micronaut.data.model.runtime.PreparedDataOperation<RT>public java.lang.Class<?> getRepositoryType()
@NonNull public java.util.Map<java.lang.String,java.lang.Object> getParameterValues()
public java.lang.Object[] getParameterArray()
public io.micronaut.core.type.Argument[] getArguments()
@NonNull public io.micronaut.data.model.Pageable getPageable()
getPageable in interface io.micronaut.data.model.runtime.PagedQuery<E>public boolean isDtoProjection()
isDtoProjection in interface io.micronaut.data.model.runtime.StoredQuery<E,RT>isDtoProjection in interface DelegateStoredQuery<E,RT>@NonNull public java.lang.String getQuery()
@NonNull public io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> getAttributes()
getAttributes in interface io.micronaut.core.attr.AttributeHolder@NonNull public java.util.Optional<java.lang.Object> getAttribute(java.lang.CharSequence name)
getAttribute in interface io.micronaut.core.attr.AttributeHolder@NonNull
public <T> java.util.Optional<T> getAttribute(java.lang.CharSequence name,
java.lang.Class<T> type)
getAttribute in interface io.micronaut.core.attr.AttributeHolder