Class NativeQueryImpl<R>
- All Implemented Interfaces:
Query,TypedQuery<R>,CommonQueryContract,ResultSetMappingResolutionContext,MutationQuery,NameableQuery,NativeQuery<R>,Query<R>,SelectionQuery<R>,DomainQueryExecutionContext,QueryImplementor<R>,NativeQueryImplementor<R>,SynchronizeableQuery
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.query.NativeQuery
NativeQuery.CollectionReturn, NativeQuery.FetchReturn, NativeQuery.InstantiationResultNode<J>, NativeQuery.ResultNode, NativeQuery.ReturnableResultNode, NativeQuery.ReturnProperty, NativeQuery.RootReturn -
Field Summary
Fields inherited from class org.hibernate.query.spi.AbstractSelectionQuery
CRITERIA_HQL_STRING -
Constructor Summary
ConstructorsConstructorDescriptionNativeQueryImpl(String sql, @Nullable Class<R> resultClass, SharedSessionContractImplementor session) NativeQueryImpl(String sql, NamedResultSetMappingMemento resultSetMappingMemento, Class<R> resultClass, SharedSessionContractImplementor session) NativeQueryImpl(NamedNativeQueryMemento<?> memento, Class<R> resultJavaType, SharedSessionContractImplementor session) Constructs aNativeQueryImplgiven a SQL query defined in the mappings.NativeQueryImpl(NamedNativeQueryMemento<?> memento, String resultSetMappingName, SharedSessionContractImplementor session) Constructs aNativeQueryImplgiven a SQL query defined in the mappings.NativeQueryImpl(NamedNativeQueryMemento<?> memento, SharedSessionContractImplementor session) Constructs aNativeQueryImplgiven a SQL query defined in the mappings. -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeResult(String columnAlias, SingularAttribute attribute) Defines a result based on a specified attribute.addAttributeResult(String columnAlias, Class entityJavaType, String attributePath) Defines a result based on a specified attribute.addAttributeResult(String columnAlias, String entityName, String attributePath) Defines a result based on a specified attribute.Declare a "root" entity, without specifying an alias.Declare a "root" entity, without specifying an alias.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a join fetch result.addInstantiation(Class<J> targetJavaType) Declare a join fetch result.Declare a join fetch result.Declare a join fetch result, specifying a lock mode.addQueryHint(String hint) Add a database query hint to the SQL query.protected voidaddQuerySpaces(Serializable... spaces) protected voidaddQuerySpaces(String... spaces) voidaddResultTypeClass(Class<?> resultClass) Add a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.Add a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.Declare a scalar query result.Declare a scalar query result using the specified result type.<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> jdbcJavaType, AttributeConverter<?, C> converter) Declare a scalar query result with an explicit conversion.<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Declare a scalar query result with an explicit conversion.<O,J> NativeQueryImplementor <R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, AttributeConverter<O, J> converter) Declare a scalar query result with an explicit conversion.<O,J> NativeQueryImplementor <R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, Class<? extends AttributeConverter<O, J>> converterJavaType) Declare a scalar query result with an explicit conversion.addScalar(String columnAlias, BasicDomainType type) Declare a scalar query result.addScalar(String columnAlias, BasicTypeReference type) Declare a scalar query result.addSynchronizedEntityClass(Class entityClass) Add all query spaces associated with the entity with the given type.addSynchronizedEntityName(String entityName) Add all query spaces associated with the entity with the given names.addSynchronizedQuerySpace(String querySpace) Add a query space.protected voidapplyEntityGraphHint(GraphSemantic graphSemantic, Object value, String hintName) protected voidapplyGraph(String graphString, GraphSemantic graphSemantic) applyGraph(RootGraph graph, GraphSemantic semantic) Apply the given graph using the given semanticprotected voidapplyGraph(RootGraphImplementor<?> entityGraph, GraphSemantic graphSemantic) protected voidapplyOptions(NamedNativeQueryMemento<?> memento) protected voidapplySynchronizeSpace(Object value) protected voidapplySynchronizeSpacesHint(Object value) protected voidcollectHints(Map<String, Object> hints) protected NativeSelectQueryPlan<Long> static intdetermineBindValueMaxCount(boolean paddingEnabled, int inExprLimit, int bindValueCount) protected @Nullable TupleTransformer<?> determineTupleTransformerForResultType(Class<?> resultClass) If the result type of the query isTuple,Map,List, or any record or class type with an appropriate constructor which is NOT a registered basic type, then we attempt to repackage the result tuple as an instance of the result type using an appropriateTupleTransformer.protected intdoList()protected ScrollableResultsImplementor<R> doScroll(ScrollMode scrollMode) protected StringexpandParameterLists(int parameterStartPosition) protected NonSelectInterpretationsKeyThe callback referencegetKeyedResultList(KeyedPage<R> page) Execute the query and return the results for the given page, using key-based pagination.Get the rootLockModeTypefor the queryGet theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.Get the execution options for thisQuery.The domain parameter bindingsThe query as a string, ornullin the case of a criteria query.longDetermine the size of the query result list that would be returned by callingSelectionQuery.getResultList()with no offset or limit applied to the query.Obtain the list of query spaces this query is synchronized with.booleanBest guess whether this is a select query.protected voidprotected NativeQueryImplementor<R> registerBuilder(ResultBuilder builder) protected SelectQueryPlan<R> setCacheable(boolean cacheable) Enable/disable second level query (result) caching for this query.setCacheMode(CacheMode cacheMode) Set the currentCacheModein effect for this query.setCacheRegion(String cacheRegion) Set the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) setCacheStoreMode(CacheStoreMode cacheStoreMode) setComment(String comment) Set a comment for this query.setFetchSize(int fetchSize) Sets a JDBC fetch size hint for the query.setFirstResult(int startPosition) Set the first query result row to return.setFlushMode(FlushModeType flushModeType) Set theFlushModeto use for this query.setHibernateFlushMode(FlushMode flushMode) Set the currentFlushModein effect for this query.setHibernateLockMode(LockMode lockMode) Specify the root LockMode for the querySet a hint.setLockMode(LockModeType lockModeType) Specify the root LockModeType for the querysetLockOptions(LockOptions lockOptions) Deprecated.setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.setLockScope(Locking.Scope lockScope) Apply a scope to any pessimistic locking applied to the query.setMaxResults(int maxResults) Set the maximum number of query result rows to return.setParameter(int position, Object value) Bind the given argument to an ordinal query parameter.setParameter(int position, Instant value, TemporalType temporalType) Deprecated.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.setParameter(int position, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(int position, P value, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameter(int position, P value, Class<P> javaTypeClass) setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(Parameter<P> parameter, P value) QueryoverridesetParameter(String name, Object value) Bind the given argument to a named query parameter.setParameter(String name, Instant value, TemporalType temporalType) Deprecated.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.setParameter(String name, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(String name, P value, Type<P> type) Bind the given argument to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameter(String name, P value, Class<P> javaTypeClass) <P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P value) Bind an argument to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenType.<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Class<P> javaTypeClass) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use.setParameterList(int position, Object[] values) Bind multiple arguments to an ordinal query parameter.setParameterList(int position, Collection values) Bind multiple arguments to an ordinal query parameter.<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Class<P> javaTypeClass) <P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaTypeClass) setParameterList(String name, Object[] values) Bind multiple arguments to a named query parameter.setParameterList(String name, Collection values) Bind multiple arguments to a named query parameter.<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> javaTypeClass) Bind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Class<P> javaTypeClass) Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaTypeClass) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaTypeClass) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.setProperties(Object bean) Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.setProperties(Map map) Bind the values of the givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.setQueryFlushMode(QueryFlushMode queryFlushMode) Set theQueryFlushModeto use for this query.setQueryPlanCacheable(boolean queryPlanCacheable) Enable/disable query plan caching for this query.setReadOnly(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by thisQuery.setResultListTransformer(ResultListTransformer<R> transformer) Set aResultListTransformer.<S> NativeQueryImplementor<S> setResultTransformer(ResultTransformer<S> transformer) Deprecated.setTimeout(int timeout) Set the query timeout in seconds.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.setTimeout(Integer timeout) <T> NativeQueryImplementor<T> setTupleTransformer(TupleTransformer<T> transformer) Set aTupleTransformer.protected <T> voidsetTupleTransformerForResultType(Class<T> resultClass) Convert this query into the memento.<T> TMethods inherited from class org.hibernate.query.spi.AbstractQuery
applyOptions, disableFetchProfile, enableFetchProfile, executeUpdate, getComment, getFirstResult, getLockOptions, getMaxResults, getParameters, getSupportedHints, isCacheable, resolveJdbcParameterTypeIfNecessary, setEntityGraphMethods inherited from class org.hibernate.query.spi.AbstractSelectionQuery
afterQuery, afterQuery, afterQueryHandlingFetchProfiles, beforeQuery, beforeQueryHandlingFetchProfiles, getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFlushMode, getHibernateLockMode, getResultStream, getSingleResult, getSingleResultOrNull, isQueryPlanCacheable, isReadOnly, list, requiresTxn, resetCallback, scroll, scroll, setFollowOnLocking, setFollowOnStrategy, setLockMode, stream, uniqueElement, uniqueResult, uniqueResultOptionalMethods inherited from class org.hibernate.query.spi.AbstractCommonQueryContract
applyCommentHint, applyDatabaseHint, applyFlushModeHint, applyFollowOnLockingHint, applyFollowOnStrategyHint, applyHibernateLockMode, applyHint, applyLockModeHint, applyLockModeType, applyLockTimeoutHint, applyLockTimeoutHint, applySelectionHint, applyTimeoutHint, determineType, getExceptionConverter, getHibernateFlushMode, getHints, getIntegerLiteral, getMaxRows, getParameter, getParameter, getParameter, getParameter, getParameterValue, getParameterValue, getParameterValue, getQueryFlushMode, getSession, getSessionFactory, getTimeout, getTypeConfiguration, isBound, locateBinding, locateBinding, locateBinding, locateBinding, putIfNotNull, putIfNotNullMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getQueryFlushMode, getTimeoutMethods inherited from interface org.hibernate.query.spi.DomainQueryExecutionContext
getSessionMethods inherited from interface org.hibernate.query.NativeQuery
getHibernateLockMode, getLockOptionsMethods inherited from interface jakarta.persistence.Query
getCacheRetrieveMode, getCacheStoreMode, getFirstResult, getFlushMode, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getTimeout, isBoundMethods inherited from interface org.hibernate.query.Query
applyFetchGraph, applyLoadGraph, disableFetchProfile, enableFetchProfile, executeUpdate, getComment, getResultList, getResultStream, getSingleResult, list, setEntityGraph, setPage, stream, uniqueResult, uniqueResultOptionalMethods inherited from interface org.hibernate.query.spi.QueryImplementor
getSession, scroll, scrollMethods inherited from interface org.hibernate.query.internal.ResultSetMappingResolutionContext
getMappingMetamodel, getNamedObjectRepository, getSessionFactory, getTypeConfigurationMethods inherited from interface org.hibernate.query.SelectionQuery
getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getMaxResults, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, setFollowOnLocking, setFollowOnStrategy, setLockModeMethods inherited from interface jakarta.persistence.TypedQuery
getSingleResultOrNull
-
Constructor Details
-
Method Details
-
setTupleTransformerForResultType
-
determineTupleTransformerForResultType
protected @Nullable TupleTransformer<?> determineTupleTransformerForResultType(Class<?> resultClass) If the result type of the query isTuple,Map,List, or any record or class type with an appropriate constructor which is NOT a registered basic type, then we attempt to repackage the result tuple as an instance of the result type using an appropriateTupleTransformer.- Parameters:
resultClass- The requested result type of the query- Returns:
- A
TupleTransformerresponsible for repackaging the result type
-
getParameterOccurrences
-
applyOptions
-
getQueryString
Description copied from interface:QueryThe query as a string, ornullin the case of a criteria query.- Specified by:
getQueryStringin interfaceQuery<R>- Specified by:
getQueryStringin classAbstractSelectionQuery<R>
-
getParameterMetadata
Description copied from interface:CommonQueryContractGet theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.- Specified by:
getParameterMetadatain interfaceCommonQueryContract- Specified by:
getParameterMetadatain classAbstractCommonQueryContract
-
getQueryOptions
Description copied from interface:QueryGet the execution options for thisQuery. Many of the setters of this object update the state of the returnedQueryOptions. This is useful because it gives access to s primitive value in its (nullable) wrapper form, rather than the primitive form as required by JPA. This allows us to distinguish whether a value has been explicitly set by the client.- Specified by:
getQueryOptionsin interfaceDomainQueryExecutionContext- Specified by:
getQueryOptionsin interfaceQuery<R>- Overrides:
getQueryOptionsin classAbstractQuery<R>- Returns:
- Return the encapsulation of this query's options.
-
getCallback
Description copied from interface:DomainQueryExecutionContextThe callback reference- Specified by:
getCallbackin interfaceDomainQueryExecutionContext- Overrides:
getCallbackin classAbstractSelectionQuery<R>
-
hasCallbackActions
public boolean hasCallbackActions()- Specified by:
hasCallbackActionsin interfaceDomainQueryExecutionContext- Overrides:
hasCallbackActionsin classAbstractSelectionQuery<R>
-
getQueryParameterBindings
Description copied from interface:DomainQueryExecutionContextThe domain parameter bindings- Specified by:
getQueryParameterBindingsin interfaceDomainQueryExecutionContext- Specified by:
getQueryParameterBindingsin classAbstractCommonQueryContract
-
getParameterBindings
- Specified by:
getParameterBindingsin interfaceQueryImplementor<R>
-
getResultType
- Specified by:
getResultTypein interfaceDomainQueryExecutionContext
-
toMemento
Description copied from interface:NameableQueryConvert this query into the memento.- Specified by:
toMementoin interfaceNameableQuery- Specified by:
toMementoin interfaceNativeQueryImplementor<R>- See Also:
-
getLockMode
Description copied from interface:SelectionQueryGet the rootLockModeTypefor the query- Specified by:
getLockModein interfaceNativeQuery<R>- Specified by:
getLockModein interfaceQuery- Specified by:
getLockModein interfaceSelectionQuery<R>- Overrides:
getLockModein classAbstractQuery<R>- See Also:
-
setLockOptions
Deprecated.Description copied from interface:QueryApply the given lock options to this query. Alias-specific lock modes in the given lock options are merged with any alias-specific lock mode which have already been set. If a lock mode has already been specified for an alias that is among the aliases in the given lock options, the lock mode specified in the given lock options overrides the lock mode that was already set.- Specified by:
setLockOptionsin interfaceNativeQuery<R>- Specified by:
setLockOptionsin interfaceNativeQueryImplementor<R>- Specified by:
setLockOptionsin interfaceQuery<R>- Overrides:
setLockOptionsin classAbstractQuery<R>- Parameters:
lockOptions- The lock options to apply to the query.- Returns:
this, for method chaining- See Also:
-
setHibernateLockMode
Description copied from class:AbstractSelectionQuerySpecify the root LockMode for the query- Specified by:
setHibernateLockModein interfaceNativeQuery<R>- Specified by:
setHibernateLockModein interfaceNativeQueryImplementor<R>- Specified by:
setHibernateLockModein interfaceSelectionQuery<R>- Overrides:
setHibernateLockModein classAbstractSelectionQuery<R>- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceQuery<R>- Overrides:
setTimeoutin classAbstractQuery<R>- Parameters:
timeout- The timeout to apply- Returns:
this, for method chaining
-
setLockScope
Description copied from interface:SelectionQueryApply a scope to any pessimistic locking applied to the query.- Specified by:
setLockScopein interfaceNativeQuery<R>- Specified by:
setLockScopein interfaceQuery<R>- Specified by:
setLockScopein interfaceSelectionQuery<R>- Overrides:
setLockScopein classAbstractQuery<R>- Parameters:
lockScope- The lock scope to apply- Returns:
this, for method chaining
-
setLockScope
Description copied from interface:SelectionQueryApply a scope to any pessimistic locking applied to the query.- Specified by:
setLockScopein interfaceSelectionQuery<R>- Overrides:
setLockScopein classAbstractQuery<R>- Parameters:
lockScope- The lock scope to apply- Returns:
this, for method chaining
-
setLockMode
Description copied from class:AbstractSelectionQuerySpecify the root LockModeType for the query- Specified by:
setLockModein interfaceNativeQuery<R>- Specified by:
setLockModein interfaceNativeQueryImplementor<R>- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<R>- Specified by:
setLockModein interfaceSelectionQuery<R>- Specified by:
setLockModein interfaceTypedQuery<R>- Overrides:
setLockModein classAbstractQuery<R>- See Also:
-
applyGraph
- Overrides:
applyGraphin classAbstractCommonQueryContract
-
applyGraph
- Overrides:
applyGraphin classAbstractCommonQueryContract
-
applyGraph
Description copied from interface:QueryApply the given graph using the given semantic- Specified by:
applyGraphin interfaceQuery<R>- Parameters:
graph- The graph to apply.semantic- The semantic to use when applying the graph
-
applyEntityGraphHint
- Overrides:
applyEntityGraphHintin classAbstractCommonQueryContract
-
setTupleTransformer
Description copied from interface:QuerySet aTupleTransformer.- Specified by:
setTupleTransformerin interfaceNativeQuery<R>- Specified by:
setTupleTransformerin interfaceNativeQueryImplementor<R>- Specified by:
setTupleTransformerin interfaceQuery<R>- Specified by:
setTupleTransformerin interfaceQueryImplementor<R>- Specified by:
setTupleTransformerin interfaceSelectionQuery<R>- Overrides:
setTupleTransformerin classAbstractQuery<R>
-
setResultListTransformer
Description copied from interface:QuerySet aResultListTransformer.- Specified by:
setResultListTransformerin interfaceNativeQuery<R>- Specified by:
setResultListTransformerin interfaceNativeQueryImplementor<R>- Specified by:
setResultListTransformerin interfaceQuery<R>- Specified by:
setResultListTransformerin interfaceQueryImplementor<R>- Specified by:
setResultListTransformerin interfaceSelectionQuery<R>- Overrides:
setResultListTransformerin classAbstractQuery<R>
-
isSelectQuery
Description copied from interface:NativeQueryImplementorBest guess whether this is a select query.nullindicates unknown- Specified by:
isSelectQueryin interfaceNativeQueryImplementor<R>
-
prepareForExecution
protected void prepareForExecution()- Overrides:
prepareForExecutionin classAbstractQuery<R>
-
doList
- Specified by:
doListin classAbstractSelectionQuery<R>
-
getResultCount
public long getResultCount()Description copied from interface:SelectionQueryDetermine the size of the query result list that would be returned by callingSelectionQuery.getResultList()with no offset or limit applied to the query.- Specified by:
getResultCountin interfaceSelectionQuery<R>- Returns:
- the size of the list that would be returned
-
getKeyedResultList
Description copied from interface:SelectionQueryExecute the query and return the results for the given page, using key-based pagination.- Specified by:
getKeyedResultListin interfaceSelectionQuery<R>- Overrides:
getKeyedResultListin classAbstractQuery<R>- Parameters:
page- the key-based specification of the page as an instance ofKeyedPage- Returns:
- the query results and the key of the next page
as an instance of
KeyedResultList - See Also:
-
resolveSelectQueryPlan
-
createCountQueryPlan
-
expandParameterLists
-
determineBindValueMaxCount
public static int determineBindValueMaxCount(boolean paddingEnabled, int inExprLimit, int bindValueCount) -
doScroll
- Specified by:
doScrollin classAbstractSelectionQuery<R>
-
doExecuteUpdate
protected int doExecuteUpdate()- Specified by:
doExecuteUpdatein classAbstractQuery<R>
-
generateNonSelectInterpretationsKey
-
addResultTypeClass
- Specified by:
addResultTypeClassin interfaceNativeQueryImplementor<R>
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result. Hibernate will attempt to automatically detect the underlying type.Functions like
<return-scalar/>inhbm.xmlorColumnResultin annotations- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
columnAlias- The column alias in the result set to be processed as a scalar result- Returns:
this, for method chaining
-
addScalar
-
registerBuilder
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result.Functions like
<return-scalar/>inhbm.xmlorColumnResultin annotations.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
columnAlias- The column alias in the result set to be processed as a scalar resulttype- The Hibernate type as which to treat the value.- Returns:
this, for method chaining
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result.Functions like
<return-scalar/>inhbm.xmlorColumnResultin annotations.- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
columnAlias- The column alias in the result set to be processed as a scalar resulttype- The Hibernate type as which to treat the value.- Returns:
this, for method chaining
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result using the specified result type.Hibernate will implicitly determine an appropriate conversion, if it can. Otherwise, an exception will be thrown.
- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Returns:
this, for method chaining
-
addScalar
public <C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> jdbcJavaType, AttributeConverter<?, C> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
jdbcJavaType- The Java type expected by the converter as its "relational" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
public <O,J> NativeQueryImplementor<R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, AttributeConverter<O, J> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
domainJavaType- The Java type expected by the converter as its "object model" type.jdbcJavaType- The Java type expected by the converter as its "relational model" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
public <C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
relationalJavaType- The Java type expected by the converter as its "relational" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
public <O,J> NativeQueryImplementor<R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, Class<? extends AttributeConverter<O, J>> converterJavaType) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Specified by:
addScalarin interfaceNativeQueryImplementor<R>- Parameters:
domainJavaType- The Java type expected by the converter as its "object model" type.jdbcJavaType- The Java type expected by the converter as its "relational model" type.converterJavaType- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addInstantiation
- Specified by:
addInstantiationin interfaceNativeQuery<R>
-
addAttributeResult
public NativeQueryImplementor<R> addAttributeResult(String columnAlias, Class entityJavaType, String attributePath) Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Specified by:
addAttributeResultin interfaceNativeQueryImplementor<R>- Returns:
this, for method chaining
-
addAttributeResult
public NativeQueryImplementor<R> addAttributeResult(String columnAlias, String entityName, String attributePath) Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Specified by:
addAttributeResultin interfaceNativeQueryImplementor<R>- Returns:
this, for method chaining
-
addAttributeResult
public NativeQueryImplementor<R> addAttributeResult(String columnAlias, SingularAttribute attribute) Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.This form accepts the JPA Attribute mapping describing the attribute
- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Specified by:
addAttributeResultin interfaceNativeQueryImplementor<R>- Returns:
this, for method chaining
-
addRoot
Description copied from interface:NativeQueryAdd a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.- Specified by:
addRootin interfaceNativeQuery<R>- Specified by:
addRootin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table alias to map to this entityentityName- The name of the entity- Returns:
- The return config object for further control.
-
addRoot
Description copied from interface:NativeQueryAdd a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.- Specified by:
addRootin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias to map to this entityentityType- The java type of the entity- Returns:
- The return config object for further control.
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name.Use
NativeQuery.addRoot(java.lang.String, java.lang.String)if you need further control of the mapping- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
entityName- The entity name that is the root return of the query- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity.- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table aliasentityName- The entity name- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, specifying a lock mode.- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table aliasentityName- The entity namelockMode- The lock mode for this return.- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name.- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
entityType- The java type of the entity to add as a root- Returns:
this, for method chaining
-
addEntity
- Specified by:
addEntityin interfaceNativeQueryImplementor<R>
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity.- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table aliasentityClass- The java type of the entity to add as a root- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, specifying a lock mode.- Specified by:
addEntityin interfaceNativeQuery<R>- Specified by:
addEntityin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table aliasentityClass- The entityClasslockMode- The lock mode for this return- Returns:
this, for method chaining
-
addFetch
public NativeQuery.FetchReturn addFetch(String tableAlias, String ownerTableAlias, String joinPropertyName) Description copied from interface:NativeQueryDeclare a join fetch result.- Specified by:
addFetchin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetch.ownerTableAlias- Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch.joinPropertyName- The name of the property being join fetched.- Returns:
- The return config object for further control.
-
addJoin
Description copied from interface:NativeQueryDeclare a join fetch result.- Specified by:
addJoinin interfaceNativeQuery<R>- Specified by:
addJoinin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetch.path- The association path of form[owner-alias].[property-name].- Returns:
this, for method chaining
-
addJoin
public NativeQueryImplementor<R> addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName) Description copied from interface:NativeQueryDeclare a join fetch result.- Specified by:
addJoinin interfaceNativeQuery<R>- Specified by:
addJoinin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetchownerTableAlias- Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch.joinPropertyName- The name of the property being join fetched.- Returns:
this, for method chaining
-
addJoin
Description copied from interface:NativeQueryDeclare a join fetch result, specifying a lock mode.- Specified by:
addJoinin interfaceNativeQuery<R>- Specified by:
addJoinin interfaceNativeQueryImplementor<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetchpath- The association path of form[owner-alias].[property-name].lockMode- The lock mode for this return.- Returns:
this, for method chaining
-
getSynchronizedQuerySpaces
Description copied from interface:SynchronizeableQueryObtain the list of query spaces this query is synchronized with.- Specified by:
getSynchronizedQuerySpacesin interfaceSynchronizeableQuery- Returns:
- The list of query spaces upon which the query is synchronized.
-
addSynchronizedQuerySpace
Description copied from interface:SynchronizeableQueryAdd a query space. The effect of this call is to:- force an auto-flush if any entity associated with the current session and mapped to the given query space has pending changes which have not yet been synchronized with the database, and
- if the result set of this query is cached, mark it for invalidation when any entity mapped to the given query space is synchronized with the database in any session.
- Specified by:
addSynchronizedQuerySpacein interfaceNativeQuery<R>- Specified by:
addSynchronizedQuerySpacein interfaceNativeQueryImplementor<R>- Specified by:
addSynchronizedQuerySpacein interfaceSynchronizeableQuery- Parameters:
querySpace- The name of the query space, usually the name of a database table.- Returns:
this, for method chaining
-
addQuerySpaces
-
addQuerySpaces
-
addSynchronizedEntityName
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given names.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)for all tables mapped by the given entity.- Specified by:
addSynchronizedEntityNamein interfaceNativeQuery<R>- Specified by:
addSynchronizedEntityNamein interfaceNativeQueryImplementor<R>- Specified by:
addSynchronizedEntityNamein interfaceSynchronizeableQuery- Parameters:
entityName- The name of an entity.- Returns:
this, for method chaining
-
addSynchronizedEntityClass
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given type.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)for all tables mapped by the given entity.- Specified by:
addSynchronizedEntityClassin interfaceNativeQuery<R>- Specified by:
addSynchronizedEntityClassin interfaceNativeQueryImplementor<R>- Specified by:
addSynchronizedEntityClassin interfaceSynchronizeableQuery- Parameters:
entityClass- The class of the entity.- Returns:
this, for method chaining
-
setHibernateFlushMode
Description copied from interface:CommonQueryContractSet the currentFlushModein effect for this query.- Specified by:
setHibernateFlushModein interfaceCommonQueryContract- Specified by:
setHibernateFlushModein interfaceMutationQuery- Specified by:
setHibernateFlushModein interfaceNativeQuery<R>- Specified by:
setHibernateFlushModein interfaceNativeQueryImplementor<R>- Specified by:
setHibernateFlushModein interfaceQuery<R>- Specified by:
setHibernateFlushModein interfaceSelectionQuery<R>- Overrides:
setHibernateFlushModein classAbstractQuery<R>- See Also:
-
setQueryFlushMode
Description copied from interface:CommonQueryContractSet theQueryFlushModeto use for this query.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceMutationQuery- Specified by:
setQueryFlushModein interfaceNativeQuery<R>- Specified by:
setQueryFlushModein interfaceNativeQueryImplementor<R>- Specified by:
setQueryFlushModein interfaceQuery<R>- Specified by:
setQueryFlushModein interfaceSelectionQuery<R>- Overrides:
setQueryFlushModein classAbstractQuery<R>- See Also:
-
setFlushMode
Description copied from interface:CommonQueryContractSet theFlushModeto use for this query.Setting this to
nullultimately indicates to use theFlushModeof the session. UseCommonQueryContract.setHibernateFlushMode(org.hibernate.FlushMode)passingFlushMode.MANUALinstead to indicate that no automatic flushing should occur.- Specified by:
setFlushModein interfaceCommonQueryContract- Specified by:
setFlushModein interfaceMutationQuery- Specified by:
setFlushModein interfaceNativeQuery<R>- Specified by:
setFlushModein interfaceNativeQueryImplementor<R>- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceSelectionQuery<R>- Specified by:
setFlushModein interfaceTypedQuery<R>- Overrides:
setFlushModein classAbstractQuery<R>- See Also:
-
setCacheMode
Description copied from interface:SelectionQuerySet the currentCacheModein effect for this query.Set it to
nullto indicate that theCacheModeof thesessionshould be used.- Specified by:
setCacheModein interfaceNativeQuery<R>- Specified by:
setCacheModein interfaceNativeQueryImplementor<R>- Specified by:
setCacheModein interfaceQuery<R>- Specified by:
setCacheModein interfaceSelectionQuery<R>- Overrides:
setCacheModein classAbstractQuery<R>- See Also:
-
setCacheRetrieveMode
- Specified by:
setCacheRetrieveModein interfaceNativeQuery<R>- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<R>- Specified by:
setCacheRetrieveModein interfaceSelectionQuery<R>- Specified by:
setCacheRetrieveModein interfaceTypedQuery<R>- Overrides:
setCacheRetrieveModein classAbstractQuery<R>- See Also:
-
setCacheStoreMode
- Specified by:
setCacheStoreModein interfaceNativeQuery<R>- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<R>- Specified by:
setCacheStoreModein interfaceSelectionQuery<R>- Specified by:
setCacheStoreModein interfaceTypedQuery<R>- Overrides:
setCacheStoreModein classAbstractQuery<R>- See Also:
-
setTimeout
- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceTypedQuery<R>
-
setCacheable
Description copied from interface:SelectionQueryEnable/disable second level query (result) caching for this query.- Specified by:
setCacheablein interfaceNativeQuery<R>- Specified by:
setCacheablein interfaceNativeQueryImplementor<R>- Specified by:
setCacheablein interfaceQuery<R>- Specified by:
setCacheablein interfaceSelectionQuery<R>- Overrides:
setCacheablein classAbstractQuery<R>- See Also:
-
setCacheRegion
Description copied from interface:SelectionQuerySet the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).nullindicates to use the default region.- Specified by:
setCacheRegionin interfaceNativeQuery<R>- Specified by:
setCacheRegionin interfaceNativeQueryImplementor<R>- Specified by:
setCacheRegionin interfaceQuery<R>- Specified by:
setCacheRegionin interfaceSelectionQuery<R>- Overrides:
setCacheRegionin classAbstractQuery<R>- See Also:
-
setQueryPlanCacheable
Description copied from interface:SelectionQueryEnable/disable query plan caching for this query.- Specified by:
setQueryPlanCacheablein interfaceSelectionQuery<R>- Overrides:
setQueryPlanCacheablein classAbstractQuery<R>- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractSet the query timeout in seconds.Any value set here is eventually passed directly along to the JDBC statement, which expressly disallows negative values. So negative values should be avoided as a general rule, although certain "magic values" are handled - see Timeouts.NO_WAIT.
A value of zero indicates no timeout.
- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceNativeQueryImplementor<R>- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceSelectionQuery<R>- Overrides:
setTimeoutin classAbstractQuery<R>- Parameters:
timeout- the timeout in seconds- Returns:
this, for method chaining- See Also:
-
setFetchSize
Description copied from interface:SelectionQuerySets a JDBC fetch size hint for the query.- Specified by:
setFetchSizein interfaceNativeQuery<R>- Specified by:
setFetchSizein interfaceNativeQueryImplementor<R>- Specified by:
setFetchSizein interfaceQuery<R>- Specified by:
setFetchSizein interfaceSelectionQuery<R>- Overrides:
setFetchSizein classAbstractQuery<R>- Parameters:
fetchSize- the fetch size hint- Returns:
this, for method chaining- See Also:
-
setReadOnly
Description copied from interface:SelectionQuerySet the read-only/modifiable mode for entities and proxies loaded by thisQuery. This setting overrides the default setting for the persistence context,Session.isDefaultReadOnly().To set the default read-only/modifiable setting used for entities and proxies that are loaded into the session, use
Session.setDefaultReadOnly(boolean).Read-only entities are not dirty-checked and snapshots of persistent state are not maintained. Read-only entities can be modified, but changes are not persisted.
When a proxy is initialized, the loaded entity will have the same read-only/modifiable setting as the uninitialized proxy has, regardless of the session's current setting.
The read-only/modifiable setting has no impact on entities/proxies returned by the query that existed in the session beforeQuery the query was executed.
- Specified by:
setReadOnlyin interfaceNativeQuery<R>- Specified by:
setReadOnlyin interfaceNativeQueryImplementor<R>- Specified by:
setReadOnlyin interfaceQuery<R>- Specified by:
setReadOnlyin interfaceSelectionQuery<R>- Overrides:
setReadOnlyin classAbstractQuery<R>- Parameters:
readOnly-trueindicates that entities and proxies loaded by the query are to be put in read-only mode;falseindicates that entities and proxies loaded by the query will be put in modifiable mode- Returns:
this, for method chaining
-
unwrap
-
setComment
Description copied from interface:CommonQueryContractSet a comment for this query.- Specified by:
setCommentin interfaceCommonQueryContract- Specified by:
setCommentin interfaceMutationQuery- Specified by:
setCommentin interfaceNativeQuery<R>- Specified by:
setCommentin interfaceNativeQueryImplementor<R>- Specified by:
setCommentin interfaceQuery<R>- Specified by:
setCommentin interfaceSelectionQuery<R>- Overrides:
setCommentin classAbstractQuery<R>- Parameters:
comment- The human-readable comment- Returns:
this, for method chaining- See Also:
-
addQueryHint
Description copied from interface:QueryAdd a database query hint to the SQL query.A database hint is a completely different concept to a JPA hint specified using
QueryHintorQuery.getHints(). These are hints to the JPA provider.Multiple query hints may be specified. The operation
Dialect.getQueryHintString(String, List)determines how the hint is actually added to the SQL query.- Specified by:
addQueryHintin interfaceNativeQuery<R>- Specified by:
addQueryHintin interfaceNativeQueryImplementor<R>- Specified by:
addQueryHintin interfaceQuery<R>- Overrides:
addQueryHintin classAbstractQuery<R>- Parameters:
hint- The database specific query hint to add.
-
collectHints
- Overrides:
collectHintsin classAbstractQuery<R>
-
applySynchronizeSpacesHint
- Overrides:
applySynchronizeSpacesHintin classAbstractCommonQueryContract
-
applySynchronizeSpace
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to a named query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to a named query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(String, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to a named query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(String name, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:CommonQueryContractBind anInstantto the named query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(String name, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to an ordinal query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(int, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind the given argument to an ordinal query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(int position, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:CommonQueryContractBind anInstantto an ordinal query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(int position, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
Description copied from interface:CommonQueryContractBind an argument to the query parameter represented by the givenQueryParameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be null- Returns:
this, for method chaining- See Also:
-
setParameter
public <P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(QueryParameter, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be nulljavaTypeClass- aTyperepresenting the type of the parameter- Returns:
this, for method chaining- See Also:
-
setParameter
public <P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Type<P> type) Description copied from interface:CommonQueryContractBind an argument to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be nulltype- aTyperepresenting the type of the parameter- Returns:
this, for method chaining
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameter
@Deprecated public NativeQueryImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceNativeQueryImplementor<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- Overrides:
setParameterin classAbstractQuery<R>- See Also:
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,CommonQueryContract.setParameterList(String, Collection)is used- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameter.The type of the parameter is inferred from the context in which it occurs, and from the type of the first given argument.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back to usingCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameter.The type of the parameter is inferred between the context in which it occurs, the type associated with the
QueryParameterand the type of the first given argument.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaTypeClass) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back to usingCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
public <P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceNativeQueryImplementor<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Overrides:
setParameterListin classAbstractQuery<R>- Returns:
this, for method chaining
-
setProperties
Description copied from interface:CommonQueryContractBind the values of the givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.- Specified by:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceNativeQueryImplementor<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Overrides:
setPropertiesin classAbstractQuery<R>- Parameters:
map- aMapof names to arguments- Returns:
this, for method chaining
-
setProperties
Description copied from interface:CommonQueryContractBind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.- Specified by:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceNativeQueryImplementor<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Overrides:
setPropertiesin classAbstractQuery<R>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setResultTransformer
@Deprecated public <S> NativeQueryImplementor<S> setResultTransformer(ResultTransformer<S> transformer) Deprecated.- Specified by:
setResultTransformerin interfaceNativeQuery<R>- Specified by:
setResultTransformerin interfaceNativeQueryImplementor<R>- Specified by:
setResultTransformerin interfaceQuery<R>- Specified by:
setResultTransformerin interfaceQueryImplementor<R>
-
setMaxResults
Description copied from interface:SelectionQuerySet the maximum number of query result rows to return.- Specified by:
setMaxResultsin interfaceNativeQuery<R>- Specified by:
setMaxResultsin interfaceNativeQueryImplementor<R>- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<R>- Specified by:
setMaxResultsin interfaceSelectionQuery<R>- Specified by:
setMaxResultsin interfaceTypedQuery<R>- Overrides:
setMaxResultsin classAbstractQuery<R>- Parameters:
maxResults- the maximum length of the query result list
-
setFirstResult
Description copied from interface:SelectionQuerySet the first query result row to return. The very first row of the query result list is considered the zeroth row.- Specified by:
setFirstResultin interfaceNativeQuery<R>- Specified by:
setFirstResultin interfaceNativeQueryImplementor<R>- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<R>- Specified by:
setFirstResultin interfaceSelectionQuery<R>- Specified by:
setFirstResultin interfaceTypedQuery<R>- Overrides:
setFirstResultin classAbstractQuery<R>- Parameters:
startPosition- the position of the first row to return, indexed from zero
-
setHint
Description copied from interface:CommonQueryContractSet a hint. The hints understood by Hibernate are enumerated byAvailableHints.- Specified by:
setHintin interfaceCommonQueryContract- Specified by:
setHintin interfaceMutationQuery- Specified by:
setHintin interfaceNativeQuery<R>- Specified by:
setHintin interfaceNativeQueryImplementor<R>- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<R>- Specified by:
setHintin interfaceSelectionQuery<R>- Specified by:
setHintin interfaceTypedQuery<R>- Overrides:
setHintin classAbstractQuery<R>- See Also:
-