Package org.hibernate.procedure.spi
Interface ProcedureCallImplementor<R>
- All Superinterfaces:
AutoCloseable
,CommonQueryContract
,MutationQuery
,NameableQuery
,ProcedureCall
,Query
,Query<R>
,QueryImplementor<R>
,SelectionQuery<R>
,StoredProcedureQuery
,SynchronizeableQuery
,TypedQuery<R>
- All Known Implementing Classes:
ProcedureCallImpl
-
Field Summary
Fields inherited from interface org.hibernate.procedure.ProcedureCall
FUNCTION_RETURN_TYPE_HINT
-
Method Summary
Modifier and TypeMethodDescriptionAccess to information about query parameters.Execute the query and return the query results as aList
.Execute the query and return the single result of the query, throwing an exception if the query returns no results.registerStoredProcedureParameter
(int position, Class type, ParameterMode mode) registerStoredProcedureParameter
(int position, BasicTypeReference<?> type, ParameterMode mode) LikeProcedureCall.registerStoredProcedureParameter(int, Class, ParameterMode)
but a basic type reference is given instead of a class for the parameter type.registerStoredProcedureParameter
(String parameterName, Class type, ParameterMode mode) registerStoredProcedureParameter
(String parameterName, BasicTypeReference<?> type, ParameterMode mode) LikeProcedureCall.registerStoredProcedureParameter(String, Class, ParameterMode)
but a basic type reference is given instead of a class for the parameter type.setFlushMode
(FlushModeType flushMode) Set theFlushMode
in to use for this query.Set a hint.setParameter
(int position, Object value) Bind the given argument to an ordinal query parameter.setParameter
(int position, Calendar value, TemporalType temporalType) Query
overridesetParameter
(int position, Date value, TemporalType temporalType) Query
overridesetParameter
(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Query
overridesetParameter
(Parameter<Date> param, Date value, TemporalType temporalType) Query
overridesetParameter
(Parameter<T> param, T value) Query
overridesetParameter
(String name, Object value) Bind the given argument to a named query parameter.setParameter
(String name, Calendar value, TemporalType temporalType) Query
overridesetParameter
(String name, Date value, TemporalType temporalType) Query
overrideMethods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getTimeout
Methods inherited from interface org.hibernate.procedure.ProcedureCall
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, close, getOutputs, getParameterRegistration, getParameterRegistration, getProcedureName, getRegisteredParameters, isFunctionCall, markAsFunctionCall, markAsFunctionCall, markAsFunctionCall, registerParameter, registerParameter, registerParameter, registerParameter, toMemento
Methods inherited from interface jakarta.persistence.Query
getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
Methods inherited from interface org.hibernate.query.Query
addQueryHint, applyFetchGraph, applyGraph, applyLoadGraph, disableFetchProfile, enableFetchProfile, executeUpdate, getComment, getLockOptions, getQueryOptions, getQueryString, getResultStream, list, setCacheable, setCacheMode, setCacheRegion, setCacheRetrieveMode, setCacheStoreMode, setComment, setEntityGraph, setFetchSize, setFirstResult, setHibernateFlushMode, setLockMode, setLockMode, setLockOptions, setMaxResults, setOrder, setOrder, setPage, setReadOnly, setTimeout, stream, uniqueResult, uniqueResultOptional
Methods inherited from interface org.hibernate.query.spi.QueryImplementor
getParameterBindings, getSession, scroll, scroll, setOptionalEntityName, setOptionalId, setOptionalObject, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setProperties, setProperties, setResultListTransformer, setResultTransformer, setTupleTransformer
Methods inherited from interface org.hibernate.query.SelectionQuery
getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getHibernateLockMode, getKeyedResultList, getLockMode, getMaxResults, getResultCount, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, setAliasSpecificLockMode, setFollowOnLocking, setHibernateLockMode, setQueryPlanCacheable
Methods inherited from interface jakarta.persistence.StoredProcedureQuery
execute, executeUpdate, getOutputParameterValue, getOutputParameterValue, getUpdateCount, hasMoreResults
Methods inherited from interface org.hibernate.query.SynchronizeableQuery
getSynchronizedQuerySpaces
-
Method Details
-
getResultList
Description copied from interface:Query
Execute the query and return the query results as aList
. If the query contains multiple items in the selection list, then by default each result in the list is packaged in an array of typeObject[]
.- Specified by:
getResultList
in interfaceQuery
- Specified by:
getResultList
in interfaceQuery<R>
- Specified by:
getResultList
in interfaceSelectionQuery<R>
- Specified by:
getResultList
in interfaceStoredProcedureQuery
- Specified by:
getResultList
in interfaceTypedQuery<R>
- Returns:
- the results as a list
-
getParameterStrategy
ParameterStrategy getParameterStrategy() -
getFunctionReturn
FunctionReturnImplementor getFunctionReturn() -
getParameterMetadata
ProcedureParameterMetadataImplementor getParameterMetadata()Description copied from interface:Query
Access to information about query parameters.- Specified by:
getParameterMetadata
in interfaceQuery<R>
- Returns:
- information about query parameters.
-
getSingleResult
R getSingleResult()Description copied from interface:Query
Execute the query and return the single result of the query, throwing an exception if the query returns no results.- Specified by:
getSingleResult
in interfaceQuery
- Specified by:
getSingleResult
in interfaceQuery<R>
- Specified by:
getSingleResult
in interfaceSelectionQuery<R>
- Specified by:
getSingleResult
in interfaceStoredProcedureQuery
- Specified by:
getSingleResult
in interfaceTypedQuery<R>
- Returns:
- the single result, only if there is exactly one
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, BasicTypeReference<?> type, ParameterMode mode) Description copied from interface:ProcedureCall
LikeProcedureCall.registerStoredProcedureParameter(int, Class, ParameterMode)
but a basic type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameter
in interfaceProcedureCall
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, BasicTypeReference<?> type, ParameterMode mode) Description copied from interface:ProcedureCall
LikeProcedureCall.registerStoredProcedureParameter(String, Class, ParameterMode)
but a basic type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameter
in interfaceProcedureCall
-
setHint
Description copied from interface:CommonQueryContract
Set a hint. The hints understood by Hibernate are enumerated byAvailableHints
.- Specified by:
setHint
in interfaceCommonQueryContract
- Specified by:
setHint
in interfaceMutationQuery
- Specified by:
setHint
in interfaceProcedureCall
- Specified by:
setHint
in interfaceQuery
- Specified by:
setHint
in interfaceQuery<R>
- Specified by:
setHint
in interfaceSelectionQuery<R>
- Specified by:
setHint
in interfaceStoredProcedureQuery
- Specified by:
setHint
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:CommonQueryContract
Bind 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 forms which accepts a "type".
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:CommonQueryContract
Bind 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 forms which accepts a "type".
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setParameter
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceProcedureCall
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQueryImplementor<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
-
setFlushMode
Description copied from interface:CommonQueryContract
Set theFlushMode
in to use for this query.- Specified by:
setFlushMode
in interfaceCommonQueryContract
- Specified by:
setFlushMode
in interfaceMutationQuery
- Specified by:
setFlushMode
in interfaceProcedureCall
- Specified by:
setFlushMode
in interfaceQuery
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceSelectionQuery<R>
- Specified by:
setFlushMode
in interfaceStoredProcedureQuery
- Specified by:
setFlushMode
in interfaceTypedQuery<R>
- See Also:
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode) - Specified by:
registerStoredProcedureParameter
in interfaceProcedureCall
- Specified by:
registerStoredProcedureParameter
in interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode) - Specified by:
registerStoredProcedureParameter
in interfaceProcedureCall
- Specified by:
registerStoredProcedureParameter
in interfaceStoredProcedureQuery
-