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
- Author:
- Steve Ebersole
-
Field Summary
Fields inherited from interface org.hibernate.procedure.ProcedureCall
FUNCTION_RETURN_TYPE_HINT -
Method Summary
Modifier and TypeMethodDescriptionAccess to information about query parameters.Retrieve the list of results from the next result set.Retrieve a single result from the next result set.registerStoredProcedureParameter(int position, Class type, ParameterMode mode) Register a positional parameter.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) Register a named parameter.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 theFlushModein 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) Bind an instance ofjava.util.Calendarto a positional parameter.setParameter(int position, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto a positional parameter.setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Bind an instance ofjava.util.Calendarto aParameterobject.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto aParameterobject.setParameter(Parameter<T> param, T value) Bind the value of aParameterobject.setParameter(String name, Object value) Bind the given argument to a named query parameter.setParameter(String name, Calendar value, TemporalType temporalType) Bind an instance ofjava.util.Calendarto a named parameter.setParameter(String name, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto a named parameter.Methods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getTimeoutMethods inherited from interface org.hibernate.procedure.ProcedureCall
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, close, getOutputs, getParameterRegistration, getParameterRegistration, getProcedureName, getRegisteredParameters, isFunctionCall, markAsFunctionCall, markAsFunctionCall, markAsFunctionCall, registerParameter, registerParameter, registerParameter, registerParameter, toMementoMethods inherited from interface jakarta.persistence.Query
getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods 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, uniqueResultOptionalMethods 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, setTupleTransformerMethods 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, setQueryPlanCacheableMethods inherited from interface jakarta.persistence.StoredProcedureQuery
execute, executeUpdate, getOutputParameterValue, getOutputParameterValue, getUpdateCount, hasMoreResultsMethods inherited from interface org.hibernate.query.SynchronizeableQuery
getSynchronizedQuerySpaces
-
Method Details
-
getResultList
Description copied from interface:StoredProcedureQueryRetrieve the list of results from the next result set. The provider will callexecuteon the query if needed. AREF_CURSORresult set, if any, will be retrieved in the order theREF_CURSORparameter was registered with the query.- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<R>- Specified by:
getResultListin interfaceSelectionQuery<R>- Specified by:
getResultListin interfaceStoredProcedureQuery- Specified by:
getResultListin interfaceTypedQuery<R>- Returns:
- a list of the results or null is the next item is not a result set
-
getParameterStrategy
ParameterStrategy getParameterStrategy() -
getFunctionReturn
FunctionReturnImplementor getFunctionReturn() -
getParameterMetadata
ProcedureParameterMetadataImplementor getParameterMetadata()Description copied from interface:QueryAccess to information about query parameters.- Specified by:
getParameterMetadatain interfaceQuery<R>- Returns:
- information about query parameters.
-
getSingleResult
R getSingleResult()Description copied from interface:StoredProcedureQueryRetrieve a single result from the next result set. The provider will callexecuteon the query if needed. AREF_CURSORresult set, if any, will be retrieved in the order theREF_CURSORparameter was registered with the query.- Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<R>- Specified by:
getSingleResultin interfaceSelectionQuery<R>- Specified by:
getSingleResultin interfaceStoredProcedureQuery- Specified by:
getSingleResultin interfaceTypedQuery<R>- Returns:
- the result or null if the next item is not a result set
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, BasicTypeReference<?> type, ParameterMode mode) Description copied from interface:ProcedureCallLikeProcedureCall.registerStoredProcedureParameter(int, Class, ParameterMode)but a basic type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, BasicTypeReference<?> type, ParameterMode mode) Description copied from interface:ProcedureCallLikeProcedureCall.registerStoredProcedureParameter(String, Class, ParameterMode)but a basic type reference is given instead of a class for the parameter type.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall
-
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 interfaceProcedureCall- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<R>- Specified by:
setHintin interfaceSelectionQuery<R>- Specified by:
setHintin interfaceStoredProcedureQuery- Specified by:
setHintin interfaceTypedQuery<R>- Parameters:
hintName- name of the property or hintvalue- value for the property or hint- Returns:
- the same query instance
- See Also:
-
setParameter
Description copied from interface:StoredProcedureQueryBind the value of aParameterobject.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
param- parameter objectvalue- parameter value- Returns:
- the same query instance
- See Also:
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Calendarto aParameterobject.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
param- parameter objectvalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- See Also:
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Dateto aParameterobject.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
param- parameter objectvalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- 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 forms which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
name- parameter namevalue- parameter value- Returns:
- the same query instance
- See Also:
-
setParameter
Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Calendarto a named parameter.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
name- parameter namevalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- See Also:
-
setParameter
Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Dateto a named parameter.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
name- parameter namevalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- 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 forms which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
position- positionvalue- parameter value- Returns:
- the same query instance
- See Also:
-
setParameter
Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Calendarto a positional parameter.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
position- positionvalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- See Also:
-
setParameter
Description copied from interface:StoredProcedureQueryBind an instance ofjava.util.Dateto a positional parameter.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceProcedureCall- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
position- positionvalue- parameter valuetemporalType- temporal type- Returns:
- the same query instance
- See Also:
-
setFlushMode
Description copied from interface:CommonQueryContractSet theFlushModein to use for this query.- Specified by:
setFlushModein interfaceCommonQueryContract- Specified by:
setFlushModein interfaceMutationQuery- Specified by:
setFlushModein interfaceProcedureCall- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceSelectionQuery<R>- Specified by:
setFlushModein interfaceStoredProcedureQuery- Specified by:
setFlushModein interfaceTypedQuery<R>- Parameters:
flushMode- flush mode- Returns:
- the same query instance
- See Also:
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode) Description copied from interface:StoredProcedureQueryRegister a positional parameter. All parameters must be registered.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery- Parameters:
position- parameter positiontype- type of the parametermode- parameter mode- Returns:
- the same query instance
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode) Description copied from interface:StoredProcedureQueryRegister a named parameter.- Specified by:
registerStoredProcedureParameterin interfaceProcedureCall- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery- Parameters:
parameterName- name of the parameter as registered or specified in metadatatype- type of the parametermode- parameter mode- Returns:
- the same query instance
-