Package org.hibernate.procedure.spi
Interface ProcedureCallImplementor<R>
-
- All Superinterfaces:
BasicQueryContract<CommonQueryContract>,CommonQueryContract,ProcedureCall,Query,Query<R>,Query<R>,QueryImplementor<R>,StoredProcedureQuery,SynchronizeableQuery,TypedQuery<R>
public interface ProcedureCallImplementor<R> extends ProcedureCall, QueryImplementor<R>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<R>getResultList()default RgetSingleResult()ProcedureCallImplementor<R>registerStoredProcedureParameter(int position, java.lang.Class type, ParameterMode mode)ProcedureCallImplementor<R>registerStoredProcedureParameter(java.lang.String parameterName, java.lang.Class type, ParameterMode mode)ProcedureCallImplementor<R>setFlushMode(FlushModeType flushMode)ProcedureCallImplementor<R>setHint(java.lang.String hintName, java.lang.Object value)ProcedureCallImplementor<R>setParameter(int position, java.lang.Object value)Bind a positional query parameter using its inferred Type.ProcedureCallImplementor<R>setParameter(int position, java.util.Calendar value, TemporalType temporalType)ProcedureCallImplementor<R>setParameter(int position, java.util.Date value, TemporalType temporalType)ProcedureCallImplementor<R>setParameter(java.lang.String name, java.lang.Object value)Bind a named query parameter using its inferred Type.ProcedureCallImplementor<R>setParameter(java.lang.String name, java.util.Calendar value, TemporalType temporalType)ProcedureCallImplementor<R>setParameter(java.lang.String name, java.util.Date value, TemporalType temporalType)ProcedureCallImplementor<R>setParameter(Parameter<java.util.Calendar> param, java.util.Calendar value, TemporalType temporalType)ProcedureCallImplementor<R>setParameter(Parameter<java.util.Date> param, java.util.Date value, TemporalType temporalType)<T> ProcedureCallImplementor<R>setParameter(Parameter<T> param, T value)-
Methods inherited from interface org.hibernate.procedure.ProcedureCall
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, extractMemento, extractMemento, getOutputs, getParameterRegistration, getParameterRegistration, getProcedureName, getRegisteredParameters, registerParameter, registerParameter, registerParameter0, registerParameter0
-
Methods inherited from interface javax.persistence.Query
getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
-
Methods inherited from interface org.hibernate.Query
determineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, getReturnAliases, getReturnTypes, getTimeout, isCacheable, isReadOnly, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterList
-
Methods inherited from interface org.hibernate.query.Query
addQueryHint, applyFetchGraph, applyGraph, applyLoadGraph, getCacheMode, getCacheRegion, getComment, getFetchSize, getHibernateFlushMode, getLockOptions, getParameterMetadata, getQueryString, getResultStream, list, scroll, scroll, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCacheable, setCacheMode, setCacheRegion, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setComment, setDate, setDate, setDouble, setDouble, setEntity, setEntity, setFetchSize, setFirstResult, setFloat, setFloat, setFlushMode, setHibernateFlushMode, setInteger, setInteger, setLocale, setLocale, setLockMode, setLockMode, setLockOptions, setLong, setLong, setMaxResults, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameters, setProperties, setProperties, setReadOnly, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimeout, setTimestamp, setTimestamp, stream, uniqueResult, uniqueResultOptional
-
Methods inherited from interface org.hibernate.query.spi.QueryImplementor
getProducer, setOptionalEntityName, setOptionalId, setOptionalObject
-
Methods inherited from interface javax.persistence.StoredProcedureQuery
execute, executeUpdate, getOutputParameterValue, getOutputParameterValue, getUpdateCount, hasMoreResults
-
Methods inherited from interface org.hibernate.SynchronizeableQuery
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, addSynchronizedTable, addSynchronizedTable, getSynchronizedQuerySpaces
-
-
-
-
Method Detail
-
getResultList
default java.util.List<R> getResultList()
- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<R>- Specified by:
getResultListin interfaceStoredProcedureQuery- Specified by:
getResultListin interfaceTypedQuery<R>
-
getSingleResult
default R getSingleResult()
- Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<R>- Specified by:
getSingleResultin interfaceStoredProcedureQuery- Specified by:
getSingleResultin interfaceTypedQuery<R>
-
setHint
ProcedureCallImplementor<R> setHint(java.lang.String hintName, java.lang.Object value)
-
setParameter
<T> ProcedureCallImplementor<R> setParameter(Parameter<T> param, T value)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<java.util.Calendar> param, java.util.Calendar value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<java.util.Date> param, java.util.Date value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(java.lang.String name, java.lang.Object value)
Description copied from interface:QueryBind a named query parameter using its inferred Type. If the parameter is defined in such a way that the Type cannot be inferred from its usage context then use of this form of binding is not allowed, andQuery.setParameter(String, Object, Type)should be used instead- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
name- the parameter namevalue- the (possibly-null) parameter value- Returns:
this, for method chaining
-
setParameter
ProcedureCallImplementor<R> setParameter(java.lang.String name, java.util.Calendar value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(java.lang.String name, java.util.Date value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(int position, java.lang.Object value)
Description copied from interface:QueryBind a positional query parameter using its inferred Type. If the parameter is defined in such a way that the Type cannot be inferred from its usage context then use of this form of binding is not allowed, andQuery.setParameter(int, Object, Type)should be used instead- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>- Parameters:
position- the position of the parameter in the query string, numbered from 0.value- the possibly-null parameter value- Returns:
this, for method chaining
-
setParameter
ProcedureCallImplementor<R> setParameter(int position, java.util.Calendar value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(int position, java.util.Date value, TemporalType temporalType)
- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceStoredProcedureQuery- Specified by:
setParameterin interfaceTypedQuery<R>
-
setFlushMode
ProcedureCallImplementor<R> setFlushMode(FlushModeType flushMode)
- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceStoredProcedureQuery- Specified by:
setFlushModein interfaceTypedQuery<R>
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, java.lang.Class type, ParameterMode mode)
- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(java.lang.String parameterName, java.lang.Class type, ParameterMode mode)
- Specified by:
registerStoredProcedureParameterin interfaceStoredProcedureQuery
-
-