Interface ProcedureCallImplementor<R>
- All Superinterfaces:
AutoCloseable, CommonQueryContract, CommonQueryContractImplementor, NameableQuery, ProcedureCall, Query, Query<R>, QueryImplementor<R>, StoredProcedureQuery, SynchronizeableQuery
-
Nested Class Summary
Nested classes/interfaces inherited from interface StoredProcedureQuery
StoredProcedureQuery.Option -
Method Summary
Modifier and TypeMethodDescriptionaddQueryHint(String hint) Add a database query hint to the SQL query.TheFunctionReturndescribing the return value of the function, ornullif thisProcedureCallis not a function call.Get theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.getParameterRegistration(int position) Retrieve a previously registered parameter memento by the position under which it was registered.Retrieve a previously registered parameter memento by the name under which it was registered.Execute theQuery<T>and return the single result of the query, throwing an exception if theQuery<T>returns no results.registerConvertedParameter(int position, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) registerConvertedParameter(String parameterName, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) registerParameter(int position, Type<T> type, ParameterMode mode) Basic form for registering a positional parameter.registerParameter(int position, Class<T> type, ParameterMode mode) Basic form for registering a positional parameter.registerParameter(String parameterName, Type<T> type, ParameterMode mode) Basic form for registering a named parameter.registerParameter(String parameterName, Class<T> type, ParameterMode mode) Basic form for registering a named parameter.<T> FunctionReturnImplementor<T> registerResultParameter(Class<T> resultType) registerStoredProcedureParameter(int position, Type<?> type, ParameterMode mode) LikeProcedureCall.registerStoredProcedureParameter(int, Class, ParameterMode)but a type reference is given instead of a class for the parameter type.registerStoredProcedureParameter(int position, Class<?> type, ParameterMode mode) registerStoredProcedureParameter(String parameterName, Type<?> type, ParameterMode mode) LikeProcedureCall.registerStoredProcedureParameter(String, Class, ParameterMode)but a type reference is given instead of a class for the parameter type.registerStoredProcedureParameter(String parameterName, Class<?> type, ParameterMode mode) setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) setCacheStoreMode(CacheStoreMode cacheStoreMode) setComment(String comment) Set the comment for this query.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) setFirstResult(int startPosition) setFlushMode(FlushModeType flushMode) Set theFlushModeTypeto use for this query.Set a hint.setLockMode(LockModeType lockMode) setMaxResults(int maxResults) setParameter(int position, Object value) Bind the given argument to an ordinal query parameter.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.setParameter(int position, Date value, TemporalType temporalType) Deprecated.setParameter(int position, P value, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.setParameter(int position, P value, Class<P> type) setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.setParameter(Parameter<T> param, T value) setParameter(String name, Object value) Bind the given argument to a named query parameter.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.setParameter(String name, Date value, TemporalType temporalType) Deprecated.setParameter(String name, P value, Type<P> type) Bind the given argument to a named query parameter using the givenType.setParameter(String name, P value, Class<P> type) setParameters(Object... arguments) 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 bean) 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.setTimeout(int timeout) Specify a JDBC query timeout to use when executing the query.setTimeout(Timeout timeout) Specify a JDBC query timeout to use when executing the query.setTimeout(Integer timeout) Specify a JDBC query timeout to use when executing the query.Convert this query into the memento.Methods inherited from interface CommonQueryContract
getComment, getEffectiveFlushMode, getQueryFlushMode, getTimeoutMethods inherited from interface ProcedureCall
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, close, getOutputs, getProcedureName, getRegisteredParameters, isFunctionCall, markAsFunctionCall, markAsFunctionCall, markAsFunctionCallMethods inherited from interface Query
getHints, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
disableFetchProfile, enableFetchProfile, executeUpdate, getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getFlushMode, getHibernateLockMode, getLockMode, getMaxResults, getQueryOptions, getQueryString, getResultStream, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, list, scroll, scroll, setCacheable, setCacheMode, setCacheRegion, setEntityGraph, setFetchSize, setReadOnly, setResultListTransformer, setTupleTransformer, stream, uniqueResult, uniqueResultOptionalMethods inherited from interface QueryImplementor
asMutationQuery, asSelectionQuery, asSelectionQuery, asSelectionQuery, asSelectionQuery, setFollowOnStrategy, setHibernateLockMode, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setQueryPlanCacheable, withResultSetMappingMethods inherited from interface StoredProcedureQuery
addOption, execute, executeUpdate, getOptions, getOutputParameterValue, getOutputParameterValue, getOutputParameterValue, getResultList, getResultList, getSingleResult, getSingleResult, getSingleResultOrNull, getSingleResultOrNull, getSingleResultOrNull, getUpdateCount, hasMoreResultsMethods inherited from interface SynchronizeableQuery
getSynchronizedQuerySpaces
-
Method Details
-
getSession
Description copied from interface:CommonQueryContract- Specified by:
getSessionin interfaceCommonQueryContract- Specified by:
getSessionin interfaceCommonQueryContractImplementor- Returns:
- The producer of this query
-
setFlushMode
Description copied from interface:QuerySet theFlushModeTypeto use for this query.Setting this to
nullultimately indicates to use theFlushModeof the session. UseQuery.setQueryFlushMode(QueryFlushMode)passingQueryFlushMode.NO_FLUSHinstead to indicate that no automatic flushing should occur.- Specified by:
setFlushModein interfaceCommonQueryContractImplementor- Specified by:
setFlushModein interfaceProcedureCall- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceQueryImplementor<R>- Specified by:
setFlushModein interfaceStoredProcedureQuery- See Also:
-
setQueryFlushMode
Description copied from interface:CommonQueryContractSet theQueryFlushModeto use for this query.A
QueryFlushModeonly affects stateful sessions. A stateless session has no persistence context to flush.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceCommonQueryContractImplementor- Specified by:
setQueryFlushModein interfaceProcedureCall- Specified by:
setQueryFlushModein interfaceQuery- Specified by:
setQueryFlushModein interfaceQuery<R>- Specified by:
setQueryFlushModein interfaceQueryImplementor<R>- Specified by:
setQueryFlushModein interfaceStoredProcedureQuery- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractSpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceProcedureCall- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- Specified by:
setTimeoutin interfaceStoredProcedureQuery- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractSpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceProcedureCall- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractSpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceProcedureCall- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- Specified by:
setTimeoutin interfaceStoredProcedureQuery
-
setComment
Description copied from interface:CommonQueryContractSet the comment for this query.If SQL commenting is enabled, the comment will be added to the SQL query sent to the database, which may be useful for identifying the source of troublesome queries.
SQL commenting may be enabled using the configuration property "hibernate.use_sql_comments".
- Specified by:
setCommentin interfaceCommonQueryContract- Specified by:
setCommentin interfaceCommonQueryContractImplementor- Specified by:
setCommentin interfaceProcedureCall- Specified by:
setCommentin interfaceQuery<R>- Specified by:
setCommentin interfaceQueryImplementor<R>- See Also:
-
addQueryHint
Description copied from interface:CommonQueryContractAdd a database query hint to the SQL query.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 interfaceCommonQueryContract- Specified by:
addQueryHintin interfaceCommonQueryContractImplementor- Specified by:
addQueryHintin interfaceProcedureCall- Specified by:
addQueryHintin interfaceQuery<R>- Specified by:
addQueryHintin interfaceQueryImplementor<R>
-
setCacheRetrieveMode
@Nonnull ProcedureCallImplementor<R> setCacheRetrieveMode(@Nonnull CacheRetrieveMode cacheRetrieveMode) - Specified by:
setCacheRetrieveModein interfaceCommonQueryContractImplementor- Specified by:
setCacheRetrieveModein interfaceProcedureCall- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<R>- Specified by:
setCacheRetrieveModein interfaceQueryImplementor<R>- Specified by:
setCacheRetrieveModein interfaceStoredProcedureQuery
-
setCacheStoreMode
- Specified by:
setCacheStoreModein interfaceCommonQueryContractImplementor- Specified by:
setCacheStoreModein interfaceProcedureCall- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<R>- Specified by:
setCacheStoreModein interfaceQueryImplementor<R>- Specified by:
setCacheStoreModein interfaceStoredProcedureQuery
-
setMaxResults
- Specified by:
setMaxResultsin interfaceCommonQueryContractImplementor- Specified by:
setMaxResultsin interfaceProcedureCall- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<R>- Specified by:
setMaxResultsin interfaceQueryImplementor<R>
-
setFirstResult
- Specified by:
setFirstResultin interfaceCommonQueryContractImplementor- Specified by:
setFirstResultin interfaceProcedureCall- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<R>- Specified by:
setFirstResultin interfaceQueryImplementor<R>
-
setLockMode
- Specified by:
setLockModein interfaceCommonQueryContractImplementor- Specified by:
setLockModein interfaceProcedureCall- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<R>- Specified by:
setLockModein interfaceQueryImplementor<R>
-
setHint
Description copied from interface:CommonQueryContractSet a hint. Hints are a JPA-standard way to control provider-specific behavior affecting execution of the query. Clients of this native Hibernate API should make use of type safe operations of this interface and of its subtypes. For example,SelectionQuery.setCacheRegion(String)is preferred overHibernateHints.HINT_CACHE_REGION.Since JPA 4,
TypedQuery.OptionandStatement.Optioncompete with query hints, offering a more type safe way to accommodate vendor extensions.The hints understood by Hibernate are enumerated by
AvailableHints.- Specified by:
setHintin interfaceCommonQueryContract- Specified by:
setHintin interfaceCommonQueryContractImplementor- Specified by:
setHintin interfaceProcedureCall- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<R>- Specified by:
setHintin interfaceQueryImplementor<R>- Specified by:
setHintin interfaceStoredProcedureQuery- See Also:
-
getParameterMetadata
Description copied from interface:CommonQueryContractGet theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.- Specified by:
getParameterMetadatain interfaceCommonQueryContract
-
getParameterStrategy
-
getParameterBindings
- Specified by:
getParameterBindingsin interfaceCommonQueryContractImplementor- Specified by:
getParameterBindingsin interfaceQueryImplementor<R>
-
getFunctionReturn
Description copied from interface:ProcedureCallTheFunctionReturndescribing the return value of the function, ornullif thisProcedureCallis not a function call.- Specified by:
getFunctionReturnin interfaceProcedureCall
-
registerResultParameter
- Specified by:
registerResultParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
@Nonnull ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class<?> type, ParameterMode mode) - Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
@Nonnull ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class<?> type, ParameterMode mode) - Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
@Nonnull ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Type<?> type, ParameterMode mode) Description copied from interface:ProcedureCallLikeProcedureCall.registerStoredProcedureParameter(int, Class, ParameterMode)but a type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall
-
registerStoredProcedureParameter
@Nonnull ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Type<?> type, ParameterMode mode) Description copied from interface:ProcedureCallLikeProcedureCall.registerStoredProcedureParameter(String, Class, ParameterMode)but a type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall
-
registerConvertedParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerConvertedParameter(int position, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) - Specified by:
registerConvertedParameterin interfaceStoredProcedureQuery
-
registerConvertedParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerConvertedParameter(String parameterName, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) - Specified by:
registerConvertedParameterin interfaceStoredProcedureQuery
-
registerParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerParameter(int position, Class<T> type, ParameterMode mode) Description copied from interface:ProcedureCallBasic form for registering a positional parameter.- Specified by:
registerParameterin interfaceProcedureCall- Specified by:
registerParameterin interfaceStoredProcedureQuery- Type Parameters:
T- The parameterized Java type of the parameter.- Parameters:
position- The positiontype- The Java type of the parametermode- The parameter mode (in, out, inout)- Returns:
- The parameter registration memento
-
registerParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerParameter(int position, Type<T> type, ParameterMode mode) Description copied from interface:ProcedureCallBasic form for registering a positional parameter.- Specified by:
registerParameterin interfaceProcedureCall- Type Parameters:
T- The parameterized Java type of the parameter.- Parameters:
position- The positiontype- The type reference of the parameter typemode- The parameter mode (in, out, inout)- Returns:
- The parameter registration memento
-
registerParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerParameter(String parameterName, Class<T> type, ParameterMode mode) throws NamedParametersNotSupportedException Description copied from interface:ProcedureCallBasic form for registering a named parameter.- Specified by:
registerParameterin interfaceProcedureCall- Specified by:
registerParameterin interfaceStoredProcedureQuery- Type Parameters:
T- The parameterized Java type of the parameter.- Parameters:
parameterName- The parameter nametype- The Java type of the parametermode- The parameter mode (in, out, inout)- Returns:
- The parameter registration memento
- Throws:
NamedParametersNotSupportedException- When the underlying database is known to not support named procedure parameters.
-
registerParameter
@Nonnull <T> ProcedureParameterImplementor<T> registerParameter(String parameterName, Type<T> type, ParameterMode mode) throws NamedParametersNotSupportedException Description copied from interface:ProcedureCallBasic form for registering a named parameter.- Specified by:
registerParameterin interfaceProcedureCall- Type Parameters:
T- The parameterized Java type of the parameter.- Parameters:
parameterName- The parameter nametype- The type reference of the parameter typemode- The parameter mode (in, out, inout)- Returns:
- The parameter registration memento
- Throws:
NamedParametersNotSupportedException- When the underlying database is known to not support named procedure parameters.
-
getParameterRegistration
Description copied from interface:ProcedureCallRetrieve a previously registered parameter memento by the position under which it was registered.- Specified by:
getParameterRegistrationin interfaceProcedureCall- Parameters:
position- The parameter position- Returns:
- The parameter registration memento
-
getParameterRegistration
Description copied from interface:ProcedureCallRetrieve a previously registered parameter memento by the name under which it was registered.- Specified by:
getParameterRegistrationin interfaceProcedureCall- Parameters:
name- The parameter name- Returns:
- The parameter registration memento
-
setParameter
@Nonnull <T> ProcedureCallImplementor<R> setParameter(@Nonnull Parameter<T> param, @Nullable T value) Description copied from interface:Query- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(@Nonnull Parameter<Calendar> param, @Nullable Calendar value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(@Nonnull Parameter<Date> param, @Nullable Date value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(@Nonnull String name, @Nullable Calendar value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(@Nonnull String name, @Nullable Date value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Nonnull <P> ProcedureCallImplementor<R> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Class<P> type) 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Nonnull <P> ProcedureCallImplementor<R> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind the given argument to a named query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery
-
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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameters
Description copied from interface:Query- Specified by:
setParametersin interfaceCommonQueryContract- Specified by:
setParametersin interfaceCommonQueryContractImplementor- Specified by:
setParametersin interfaceProcedureCall- Specified by:
setParametersin interfaceQuery- Specified by:
setParametersin interfaceQuery<R>- Specified by:
setParametersin interfaceQueryImplementor<R>- Specified by:
setParametersin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Nonnull <P> ProcedureCallImplementor<R> setParameter(int position, @Nullable P value, @Nonnull Class<P> type) 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Nonnull <P> ProcedureCallImplementor<R> setParameter(int position, @Nullable P value, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind the given argument to an ordinal query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(int position, @Nullable Calendar value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
setParameter
@Deprecated @Nonnull ProcedureCallImplementor<R> setParameter(int position, @Nullable Date value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- See Also:
-
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 interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Parameters:
bean- any JavaBean or POJO- 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 interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-
setConvertedParameter
@Nonnull <P> ProcedureCallImplementor<R> setConvertedParameter(@Nonnull String name, @Nullable P value, @Nonnull Class<? extends AttributeConverter<P, ?>> converter) Description copied from interface:Query- Specified by:
setConvertedParameterin interfaceCommonQueryContract- Specified by:
setConvertedParameterin interfaceCommonQueryContractImplementor- Specified by:
setConvertedParameterin interfaceProcedureCall- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<R>- Specified by:
setConvertedParameterin interfaceQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceStoredProcedureQuery- See Also:
-
setConvertedParameter
@Nonnull <P> ProcedureCallImplementor<R> setConvertedParameter(int position, @Nullable P value, @Nonnull Class<? extends AttributeConverter<P, ?>> converter) Description copied from interface:Query- Specified by:
setConvertedParameterin interfaceCommonQueryContract- Specified by:
setConvertedParameterin interfaceCommonQueryContractImplementor- Specified by:
setConvertedParameterin interfaceProcedureCall- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<R>- Specified by:
setConvertedParameterin interfaceQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceStoredProcedureQuery- See Also:
-
getResultList
Description copied from interface:QueryExecute theQuery<T>and return theQuery<T>results as aList. If theQuery<T>contains multiple items in the selection list, then by default each result in the list is packaged in an array of typeObject[].- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<R>- Specified by:
getResultListin interfaceStoredProcedureQuery- Returns:
- the results as a list
-
getSingleResult
R getSingleResult()Description copied from interface:QueryExecute theQuery<T>and return the single result of the query, throwing an exception if theQuery<T>returns no results.- Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<R>- Specified by:
getSingleResultin interfaceStoredProcedureQuery- Returns:
- the single result, only if there is exactly one
-
toMemento
Description copied from interface:NameableQueryConvert this query into the memento.- Specified by:
toMementoin interfaceNameableQuery- See Also:
-