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 java.lang.Object implements PreparedQuery<E,R>, DelegateStoredQuery<E,R>
The dummy prepared statement, that allows creatingStoredQuerywithout actual prepared statement.- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
-
Constructor Summary
Constructors Constructor Description DummyPreparedQuery(StoredQuery<E,R> storedQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.type.Argument[]getArguments()io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object>getAttributes()PageablegetPageable()java.lang.Object[]getParameterArray()java.util.Map<java.lang.String,java.lang.Object>getParameterValues()java.util.Map<java.lang.String,java.lang.Object>getQueryHints()The parameter binding.java.lang.Class<?>getRepositoryType()java.lang.Class<E>getRootEntity()The root entity type.StoredQuery<E,R>getStoredQueryDelegate()booleanisRawQuery()Gets an indicator telling whether underlying query is raw query.-
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, 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.data.runtime.query.internal.DelegateStoredQuery
getAnnotationMetadata, getArgumentTypes, getEntityIdentifierType, getExpandableQueryParts, getIndexedParameterAutoPopulatedPreviousPropertyIndexes, getIndexedParameterAutoPopulatedPreviousPropertyPaths, getIndexedParameterAutoPopulatedPropertyPaths, getJoinFetchPaths, getName, getQuery, getQueryBindings, getResultArgument, getResultDataType, getResultType, getTransactionDefinition, hasInExpression, hasPageable, hasResultConsumer, isCount, isDtoProjection, isNative, isOptimisticLock, isSingleResult, useNumericPlaceholders
-
Methods inherited from interface io.micronaut.data.model.runtime.PreparedDataOperation
getParameterInRole
-
Methods inherited from interface io.micronaut.data.model.runtime.PreparedQuery
getLastUpdatedType
-
Methods inherited from interface io.micronaut.data.model.runtime.StoredQuery
getIndexedParameterBinding, getIndexedParameterPaths, getIndexedParameterTypes, getLastUpdatedProperty, getParameterBinding, getParameterNames
-
-
-
-
Constructor Detail
-
DummyPreparedQuery
public DummyPreparedQuery(StoredQuery<E,R> storedQuery)
-
-
Method Detail
-
getStoredQueryDelegate
public StoredQuery<E,R> getStoredQueryDelegate()
- Specified by:
getStoredQueryDelegatein interfaceDelegateStoredQuery<E,R>- Returns:
- The delegate
-
getQueryHints
public java.util.Map<java.lang.String,java.lang.Object> 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
public java.lang.Class<?> getRepositoryType()
- Specified by:
getRepositoryTypein interfacePreparedQuery<E,R>- Returns:
- The repository type.
-
getParameterValues
public java.util.Map<java.lang.String,java.lang.Object> getParameterValues()
- Specified by:
getParameterValuesin interfacePreparedQuery<E,R>- Returns:
- The named parameter values
-
getParameterArray
public java.lang.Object[] 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
public io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> getAttributes()
- Specified by:
getAttributesin interfaceio.micronaut.core.attr.AttributeHolder
-
getRootEntity
public java.lang.Class<E> 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
public Pageable getPageable()
- Specified by:
getPageablein interfacePagedQuery<E>- Returns:
- The pageable object. Defaults to
Pageable.UNPAGED
-
-