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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute
Methods inherited from interface io.micronaut.data.runtime.query.internal.DelegateStoredQuery
getAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getJoinFetchPaths, getJoinPaths, getLimit, getName, getOffset, getOperationType, getParameterExpressions, getQuery, getQueryBindings, getResultArgument, getResultDataType, getResultType, hasPageable, hasResultConsumer, isCount, isDtoProjection, isJsonEntity, isNative, isOptimisticLock, isProcedure, isSingleResult, useNumericPlaceholders
Methods inherited from interface io.micronaut.data.model.runtime.PreparedDataOperation
getParameterInRole
-
Constructor Details
-
DummyPreparedQuery
-
-
Method Details
-
getStoredQueryDelegate
- Specified by:
getStoredQueryDelegate
in interfaceDelegateStoredQuery<E,
R> - Returns:
- The delegate
-
getQueryHints
Description copied from interface:PagedQuery
The parameter binding. That is the mapping between named query parameters and parameters of the method.- Specified by:
getQueryHints
in interfaceDelegateStoredQuery<E,
R> - Specified by:
getQueryHints
in interfacePagedQuery<E>
- Specified by:
getQueryHints
in interfacePreparedQuery<E,
R> - Specified by:
getQueryHints
in interfaceStoredQuery<E,
R> - Returns:
- The parameter binding.
-
isRawQuery
public boolean isRawQuery()Description copied from interface:PreparedQuery
Gets an indicator telling whether underlying query is raw query.- Specified by:
isRawQuery
in interfaceDelegateStoredQuery<E,
R> - Specified by:
isRawQuery
in interfacePreparedQuery<E,
R> - Specified by:
isRawQuery
in interfaceStoredQuery<E,
R> - Returns:
- true if it is raw query
-
getRepositoryType
- Specified by:
getRepositoryType
in interfacePreparedQuery<E,
R> - Returns:
- The repository type.
-
getParameterArray
- Specified by:
getParameterArray
in interfacePreparedQuery<E,
R> - Returns:
- The method parameters
-
getArguments
public io.micronaut.core.type.Argument[] getArguments()- Specified by:
getArguments
in interfacePreparedQuery<E,
R> - Returns:
- The method arguments
-
getAttributes
- Specified by:
getAttributes
in interfaceio.micronaut.core.attr.AttributeHolder
-
getRootEntity
Description copied from interface:PagedQuery
The root entity type.- Specified by:
getRootEntity
in interfaceDelegateStoredQuery<E,
R> - Specified by:
getRootEntity
in interfacePagedQuery<E>
- Specified by:
getRootEntity
in interfaceStoredQuery<E,
R> - Returns:
- The root entity type
-
getPageable
- Specified by:
getPageable
in interfacePagedQuery<E>
- Returns:
- The pageable object. Defaults to
Pageable.UNPAGED
-