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
-
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, 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 List<R> getResultList()
- Specified by:
getResultList
in interfaceQuery
- Specified by:
getResultList
in interfaceQuery<R>
- Specified by:
getResultList
in interfaceStoredProcedureQuery
- Specified by:
getResultList
in interfaceTypedQuery<R>
-
getSingleResult
default R getSingleResult()
- Specified by:
getSingleResult
in interfaceQuery
- Specified by:
getSingleResult
in interfaceQuery<R>
- Specified by:
getSingleResult
in interfaceStoredProcedureQuery
- Specified by:
getSingleResult
in interfaceTypedQuery<R>
-
setHint
ProcedureCallImplementor<R> setHint(String hintName, Object value)
-
setParameter
<T> ProcedureCallImplementor<R> setParameter(Parameter<T> param, T value)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(String name, Object value)
Description copied from interface:Query
Bind 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:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
- Parameters:
name
- the parameter namevalue
- the (possibly-null) parameter value- Returns:
this
, for method chaining
-
setParameter
ProcedureCallImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(String name, Date value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(int position, Object value)
Description copied from interface:Query
Bind 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:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in 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, Calendar value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setParameter
ProcedureCallImplementor<R> setParameter(int position, Date value, TemporalType temporalType)
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceStoredProcedureQuery
- Specified by:
setParameter
in interfaceTypedQuery<R>
-
setFlushMode
ProcedureCallImplementor<R> setFlushMode(FlushModeType flushMode)
- Specified by:
setFlushMode
in interfaceQuery
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceStoredProcedureQuery
- Specified by:
setFlushMode
in interfaceTypedQuery<R>
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
- Specified by:
registerStoredProcedureParameter
in interfaceStoredProcedureQuery
-
registerStoredProcedureParameter
ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
- Specified by:
registerStoredProcedureParameter
in interfaceStoredProcedureQuery
-
-