Interface ProcedureCallImplementor<R>
- All Superinterfaces:
AutoCloseable, CommonQueryContract, CommonQueryContractImplementor, NameableQuery, ProcedureCall, Query, Query<R>, QueryImplementor<R>, StoredProcedureQuery, SynchronizeableQuery
-
Field Summary
Fields inherited from interface ProcedureCall
FUNCTION_RETURN_TYPE_HINT -
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 the Queryand return the Query results as a List.Execute the Queryand return the single result of the query, throwing an exception if the Query 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) 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) Apply a timeout to the corresponding database query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.setTimeout(Integer timeout) Apply a timeout to the corresponding database query.Convert this query into the memento.Methods inherited from interface CommonQueryContract
asSelectionQuery, getComment, getEffectiveFlushMode, getQueryFlushMode, getTimeoutMethods inherited from interface CommonQueryContractImplementor
asSelectionQuery, asSelectionQuery, ofType, withEntityGraphMethods inherited from interface ProcedureCall
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, close, getOutputs, getProcedureName, getRegisteredParameters, isFunctionCall, markAsFunctionCall, markAsFunctionCall, markAsFunctionCallMethods inherited from interface Query
getCacheRetrieveMode, getCacheStoreMode, getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
executeUpdate, getCacheMode, getCacheRegion, getFetchSize, getFlushMode, getHibernateLockMode, getLockTimeout, getQueryOptions, getQueryString, getResultStream, isCacheable, isQueryPlanCacheable, isReadOnly, list, ofType, setCacheable, setCacheMode, setCacheRegion, setFetchSize, setLockTimeout, setReadOnly, setResultListTransformer, setTupleTransformer, stream, uniqueResult, uniqueResultOptional, withEntityGraphMethods inherited from interface QueryImplementor
asMutationQuery, asSelectionQuery, asStatement, scroll, scroll, setFollowOnLockingStrategy, setFollowOnStrategy, setHibernateLockMode, setLockScope, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setQueryPlanCacheableMethods inherited from interface StoredProcedureQuery
execute, executeUpdate, getOutputParameterValue, getOutputParameterValue, getOutputParameterValue, getResultList, getResultList, getSingleResult, getSingleResult, getSingleResultOrNull, getSingleResultOrNull, getSingleResultOrNull, getUpdateCount, hasMoreResultsMethods inherited from interface SynchronizeableQuery
getSynchronizedQuerySpaces
-
Method Details
-
getSession
SharedSessionContractImplementor 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.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceCommonQueryContractImplementor- Specified by:
setQueryFlushModein interfaceProcedureCall- Specified by:
setQueryFlushModein interfaceQuery<R>- Specified by:
setQueryFlushModein interfaceQueryImplementor<R>- See Also:
-
setTimeout
Description copied from interface:CommonQueryContractApply a timeout to the corresponding database 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:CommonQueryContractApply a timeout to the corresponding database 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:CommonQueryContractApply a timeout to the corresponding database 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
- 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 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.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
ProcedureParameterMetadataImplementor getParameterMetadata()Description copied from interface:CommonQueryContractGet theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.- Specified by:
getParameterMetadatain interfaceCommonQueryContract
-
getParameterStrategy
ParameterStrategy getParameterStrategy() -
getParameterBindings
QueryParameterBindings getParameterBindings()- Specified by:
getParameterBindingsin interfaceCommonQueryContractImplementor- Specified by:
getParameterBindingsin interfaceQueryImplementor<R>
-
getFunctionReturn
FunctionReturnImplementor<?> 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
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class<?> type, ParameterMode mode) - Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class<?> type, ParameterMode mode) - Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
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
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
<T> ProcedureParameterImplementor<T> registerConvertedParameter(int position, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) - Specified by:
registerConvertedParameterin interfaceStoredProcedureQuery
-
registerConvertedParameter
<T> ProcedureParameterImplementor<T> registerConvertedParameter(String parameterName, Class<? extends AttributeConverter<T, ?>> converter, ParameterMode mode) - Specified by:
registerConvertedParameterin interfaceStoredProcedureQuery
-
registerParameter
<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
<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
<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
<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
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 ProcedureCallImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, 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 ProcedureCallImplementor<R> setParameter(Parameter<Date> param, Date value, 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 ProcedureCallImplementor<R> setParameter(String name, Calendar value, 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 ProcedureCallImplementor<R> setParameter(String name, Date value, 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 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
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:
-
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 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 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 ProcedureCallImplementor<R> setParameter(int position, Calendar value, 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 ProcedureCallImplementor<R> setParameter(int position, Date value, 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
<P> ProcedureCallImplementor<R> setConvertedParameter(String name, P value, 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
<P> ProcedureCallImplementor<R> setConvertedParameter(int position, P value, 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 the Queryand return the Query results as a List. If the Querycontains multiple items in the selection list, then by default each result in the list is packaged in an array of type Object[].- 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 the Queryand return the single result of the query, throwing an exception if the Query 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:
-