Class DummyPreparedQuery<E,R>
java.lang.Object
io.micronaut.data.runtime.operations.internal.query.DummyPreparedQuery<E,R>
- Type Parameters:
E- The entity typeR- The result type
- All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,io.micronaut.core.attr.AttributeHolder,io.micronaut.core.naming.Named,PagedQuery<E>,PreparedDataOperation<R>,PreparedQuery<E,,R> StoredDataOperation<R>,StoredQuery<E,,R> DelegateStoredQuery<E,R>
@Internal
public final class DummyPreparedQuery<E,R>
extends Object
implements PreparedQuery<E,R>, DelegateStoredQuery<E,R>
The dummy prepared statement, that allows creating
StoredQuery without actual prepared statement.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.runtime.StoredQuery
StoredQuery.OperationType -
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttributeMethods inherited from interface io.micronaut.data.runtime.query.internal.DelegateStoredQuery
getAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getName, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getResultArgument, getResultDataType, getResultType, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isSingleResult, useNumericPlaceholdersMethods inherited from interface io.micronaut.data.model.runtime.PreparedDataOperation
getParameterInRole
-
Constructor Details
-
DummyPreparedQuery
-
-
Method Details
-
getStoredQueryDelegate
- Specified by:
getStoredQueryDelegatein interfaceDelegateStoredQuery<E,R> - Returns:
- The delegate
-
getQueryHints
Description copied from interface:PagedQueryThe parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
getQueryHintsin interfaceDelegateStoredQuery<E,R> - Specified by:
getQueryHintsin interfacePagedQuery<E>- Specified by:
getQueryHintsin interfacePreparedQuery<E,R> - Specified by:
getQueryHintsin interfaceStoredQuery<E,R> - Returns:
- The parameter binding.
-
isRawQuery
public boolean isRawQuery()Description copied from interface:PreparedQueryGets an indicator telling whether underlying query is raw query.- Specified by:
isRawQueryin interfaceDelegateStoredQuery<E,R> - Specified by:
isRawQueryin interfacePreparedQuery<E,R> - Specified by:
isRawQueryin interfaceStoredQuery<E,R> - Returns:
- true if it is raw query
-
getRepositoryType
- Specified by:
getRepositoryTypein interfacePreparedQuery<E,R> - Returns:
- The repository type.
-
getParameterArray
- Specified by:
getParameterArrayin interfacePreparedQuery<E,R> - Returns:
- The method parameters
-
getArguments
public io.micronaut.core.type.Argument[] getArguments()- Specified by:
getArgumentsin interfacePreparedQuery<E,R> - Returns:
- The method arguments
-
getAttributes
- Specified by:
getAttributesin interfaceio.micronaut.core.attr.AttributeHolder
-
getRootEntity
Description copied from interface:PagedQueryThe root entity type.- Specified by:
getRootEntityin interfaceDelegateStoredQuery<E,R> - Specified by:
getRootEntityin interfacePagedQuery<E>- Specified by:
getRootEntityin interfaceStoredQuery<E,R> - Returns:
- The root entity type
-
getPageable
- Specified by:
getPageablein interfacePagedQuery<E>- Returns:
- The pageable object. Defaults to
Pageable.UNPAGED
-