public interface ProcedureCallImplementor<R> extends ProcedureCall, QueryImplementor<R>
Modifier and Type | Method and Description |
---|---|
default List<R> |
getResultList()
Retrieve the list of results from the next result set.
|
default R |
getSingleResult()
Retrieve a single result from the next result set.
|
ProcedureCallImplementor<R> |
registerStoredProcedureParameter(int position,
Class type,
ParameterMode mode)
Register a positional parameter.
|
ProcedureCallImplementor<R> |
registerStoredProcedureParameter(String parameterName,
Class type,
ParameterMode mode)
Register a named parameter.
|
ProcedureCallImplementor<R> |
setFlushMode(FlushModeType flushMode)
Set the flush mode type to be used for the query execution.
|
ProcedureCallImplementor<R> |
setHint(String hintName,
Object value)
Set a query property or hint.
|
ProcedureCallImplementor<R> |
setParameter(int position,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a positional
parameter. |
ProcedureCallImplementor<R> |
setParameter(int position,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a positional parameter. |
ProcedureCallImplementor<R> |
setParameter(int position,
Object value)
Bind an argument value to a positional parameter.
|
ProcedureCallImplementor<R> |
setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
ProcedureCallImplementor<R> |
setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
<T> ProcedureCallImplementor<R> |
setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
ProcedureCallImplementor<R> |
setParameter(String name,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a named parameter. |
ProcedureCallImplementor<R> |
setParameter(String name,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a named parameter. |
ProcedureCallImplementor<R> |
setParameter(String name,
Object value)
Bind an argument value to a named parameter.
|
addSynchronizedEntityClass, addSynchronizedEntityName, addSynchronizedQuerySpace, extractMemento, extractMemento, getOutputs, getParameterRegistration, getParameterRegistration, getProcedureName, getRegisteredParameters, registerParameter, registerParameter, registerParameter0, registerParameter0
getSynchronizedQuerySpaces
execute, executeUpdate, getOutputParameterValue, getOutputParameterValue, getUpdateCount, hasMoreResults
getProducer, setOptionalEntityName, setOptionalId, setOptionalObject
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
determineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, getReturnAliases, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterList
getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
default List<R> getResultList()
StoredProcedureQuery
execute
on the query
if needed.
A REF_CURSOR
result set, if any, will be retrieved
in the order the REF_CURSOR
parameter was
registered with the query.getResultList
in interface Query
getResultList
in interface StoredProcedureQuery
getResultList
in interface TypedQuery<R>
default R getSingleResult()
StoredProcedureQuery
execute
on the query
if needed.
A REF_CURSOR
result set, if any, will be retrieved
in the order the REF_CURSOR
parameter was
registered with the query.getSingleResult
in interface Query
getSingleResult
in interface StoredProcedureQuery
getSingleResult
in interface TypedQuery<R>
ProcedureCallImplementor<R> setHint(String hintName, Object value)
StoredProcedureQuery
setHint
in interface Query
setHint
in interface StoredProcedureQuery
setHint
in interface TypedQuery<R>
hintName
- name of the property or hintvalue
- value for the property or hint<T> ProcedureCallImplementor<R> setParameter(Parameter<T> param, T value)
StoredProcedureQuery
Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
param
- parameter objectvalue
- parameter valueProcedureCallImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
StoredProcedureQuery
java.util.Calendar
to a Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
param
- parameter objectvalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
StoredProcedureQuery
java.util.Date
to a Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
param
- parameter objectvalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setParameter(String name, Object value)
StoredProcedureQuery
setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
name
- parameter namevalue
- parameter valueProcedureCallImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType)
StoredProcedureQuery
java.util.Calendar
to a named parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
name
- parameter namevalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setParameter(String name, Date value, TemporalType temporalType)
StoredProcedureQuery
java.util.Date
to a named parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
name
- parameter namevalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setParameter(int position, Object value)
StoredProcedureQuery
setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
position
- positionvalue
- parameter valueProcedureCallImplementor<R> setParameter(int position, Calendar value, TemporalType temporalType)
StoredProcedureQuery
java.util.Calendar
to a positional
parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
position
- positionvalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setParameter(int position, Date value, TemporalType temporalType)
StoredProcedureQuery
java.util.Date
to a positional parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
position
- positionvalue
- parameter valuetemporalType
- temporal typeProcedureCallImplementor<R> setFlushMode(FlushModeType flushMode)
StoredProcedureQuery
setFlushMode
in interface Query
setFlushMode
in interface StoredProcedureQuery
setFlushMode
in interface TypedQuery<R>
flushMode
- flush modeProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
StoredProcedureQuery
registerStoredProcedureParameter
in interface StoredProcedureQuery
position
- parameter positiontype
- type of the parametermode
- parameter modeProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
StoredProcedureQuery
registerStoredProcedureParameter
in interface StoredProcedureQuery
parameterName
- name of the parameter as registered or
specified in metadatatype
- type of the parametermode
- parameter modeCopyright © 2019 JBoss by Red Hat. All rights reserved.