public class ProcedureCallImpl<R> extends AbstractProducedQuery<R> implements ProcedureCallImplementor<R>, ResultContext
ProcedureCall
Constructor and Description |
---|
ProcedureCallImpl(SharedSessionContractImplementor session,
String procedureName)
The no-returns form.
|
ProcedureCallImpl(SharedSessionContractImplementor session,
String procedureName,
Class... resultClasses)
The result Class(es) return form
|
ProcedureCallImpl(SharedSessionContractImplementor session,
String procedureName,
String... resultSetMappings)
The result-set-mapping(s) return form
|
Modifier and Type | Method and Description |
---|---|
ProcedureCallImplementor<R> |
addSynchronizedEntityClass(Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
ProcedureCallImplementor<R> |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
ProcedureCallImplementor<R> |
addSynchronizedQuerySpace(String querySpace)
Adds a query space.
|
protected void |
addSynchronizedQuerySpaces(EntityPersister persister) |
ParameterRegistrationImplementor[] |
collectRefCursorParameters()
Collects any parameter registrations which indicate a REF_CURSOR parameter type/mode.
|
boolean |
execute()
Return true if the first result corresponds to a result set,
and false if it is an update count or if there are no results
other than through INOUT and OUT parameters, if any.
|
int |
executeUpdate()
Execute an update or delete statement.
|
ProcedureCallMemento |
extractMemento()
Extract the disconnected representation of this call.
|
ProcedureCallMemento |
extractMemento(Map<String,Object> hints)
Extract the disconnected representation of this call.
|
LockModeType |
getLockMode()
Get the current lock mode for the query.
|
Object |
getOutputParameterValue(int position)
Retrieve a value passed back from the procedure
through an INOUT or OUT parameter.
|
Object |
getOutputParameterValue(String parameterName)
Retrieve a value passed back from the procedure
through an INOUT or OUT parameter.
|
ProcedureOutputs |
getOutputs()
Retrieves access to outputs of this procedure call.
|
ProcedureParameterMetadata |
getParameterMetadata()
Access to information about query parameters.
|
ParameterRegistrationImplementor |
getParameterRegistration(int position)
Retrieve a previously registered parameter memento by the position under which it was registered.
|
ParameterRegistrationImplementor |
getParameterRegistration(String name)
Retrieve a previously registered parameter memento by the name under which it was registered.
|
ParameterStrategy |
getParameterStrategy() |
String |
getProcedureName()
Get the name of the stored procedure to be called.
|
QueryParameterBindings |
getQueryParameterBindings() |
QueryParameters |
getQueryParameters() |
NativeSQLQueryReturn[] |
getQueryReturns() |
String |
getQueryString()
Get the query string.
|
List |
getRegisteredParameters()
Retrieve all registered parameters.
|
List<R> |
getResultList()
Retrieve the list of results from the next result set.
|
String[] |
getReturnAliases() |
Type[] |
getReturnTypes()
Return the Hibernate types of the query results.
|
SharedSessionContractImplementor |
getSession() |
R |
getSingleResult()
Execute a SELECT query that returns a single result.
|
String |
getSql() |
Set<String> |
getSynchronizedQuerySpaces()
Obtain the list of query spaces the query is synchronized on.
|
int |
getUpdateCount()
Return the update count or -1 if there is no pending result
or if the next result is not an update count.
|
boolean |
hasMoreResults()
Return true if the next result corresponds to a result set,
and false if it is an update count or if there are no results
other than through INOUT and OUT parameters, if any.
|
protected boolean |
isNativeQuery()
Is the query represented here a native (SQL) query?
|
protected ProcedureOutputs |
outputs() |
<T> ParameterRegistration<T> |
registerParameter(int position,
Class<T> type,
ParameterMode mode)
Basic form for registering a positional parameter.
|
<T> ParameterRegistration<T> |
registerParameter(String name,
Class<T> type,
ParameterMode mode)
Basic form for registering a named parameter.
|
ProcedureCall |
registerParameter0(int position,
Class type,
ParameterMode mode)
|
ProcedureCall |
registerParameter0(String name,
Class type,
ParameterMode mode)
|
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> |
setEntity(int position,
Object val)
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
|
ProcedureCallImplementor<R> |
setEntity(String name,
Object val)
Bind an instance of a mapped persistent class to a named query parameter.
|
ProcedureCallImplementor<R> |
setFlushMode(FlushModeType flushModeType)
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> |
setLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
|
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(int position,
Object value,
TemporalType temporalType)
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
|
ProcedureCallImplementor<R> |
setParameter(int position,
Object value,
Type type)
Bind a value to a JDBC-style query parameter.
|
<P> ProcedureCallImplementor<R> |
setParameter(Parameter<P> parameter,
P value)
Bind the value of a
Parameter object. |
ProcedureCallImplementor<R> |
setParameter(Parameter parameter,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
ProcedureCallImplementor<R> |
setParameter(Parameter parameter,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
<P> ProcedureCallImplementor<R> |
setParameter(QueryParameter<P> parameter,
P value)
Bind a query parameter using its inferred Type.
|
<P> ProcedureCallImplementor<R> |
setParameter(QueryParameter<P> parameter,
P value,
TemporalType temporalType)
Bind a query parameter as some form of date/time using the indicated
temporal-type.
|
<P> ProcedureCallImplementor<R> |
setParameter(QueryParameter<P> parameter,
P value,
Type type)
Bind a query parameter using the supplied Type
|
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.
|
ProcedureCallImplementor<R> |
setParameter(String name,
Object value,
TemporalType temporalType)
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
|
ProcedureCallImplementor<R> |
setParameter(String name,
Object value,
Type type)
Bind a named query parameter using the supplied Type
|
protected Set<String> |
synchronizedQuerySpaces()
Use this form instead of
getSynchronizedQuerySpaces() when you want to make sure the
underlying Set is instantiated (aka, on add) |
<T> T |
unwrap(Class<T> cls)
Return an object of the specified type to allow access to
the provider-specific API.
|
addQueryHint, afterQuery, applyAliasSpecificLockModeHint, applyCacheableHint, applyCacheModeHint, applyCacheRegionHint, applyCommentHint, applyEntityGraphQueryHint, applyFetchSizeHint, applyFlushModeHint, applyFollowOnLockingHint, applyHibernateLockModeHint, applyJpaCacheRetrieveMode, applyJpaCacheStoreMode, applyLockModeTypeHint, applyLockTimeoutHint, applyNativeQueryLockMode, applyPassDistinctThrough, applyReadOnlyHint, applyTimeoutHint, beforeQuery, canApplyAliasSpecificLockModeHints, collectBaselineHints, collectHints, determineProperBooleanType, determineProperBooleanType, determineType, doExecuteUpdate, doIterate, doList, doScroll, getCacheMode, getCacheRegion, getComment, getExceptionConverter, getFetchSize, getFirstResult, getFlushMode, getHibernateFlushMode, getHints, getLockOptions, getMaxResults, getNamedParameterMap, getNamedParameters, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getPositionalParameterTypes, getPositionalParameterValues, getProducer, getQueryOptions, getSupportedHints, getTimeout, handleUnrecognizedHint, isBound, isCacheable, isCallable, isReadOnly, iterate, list, makeQueryParametersForExecution, putIfNotNull, putIfNotNull, resolveEntityName, scroll, scroll, setCacheable, setCacheMode, setCacheRegion, setComment, setFetchSize, setFirstResult, setFlushMode, setHibernateFlushMode, setLockMode, setLockOptions, setMaxResults, setOptionalEntityName, setOptionalId, setOptionalObject, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setProperties, setProperties, setReadOnly, setResultTransformer, setTimeout, stream, uniqueElement, uniqueResult, uniqueResultOptional
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProducer, setOptionalEntityName, setOptionalId, setOptionalObject
addQueryHint, getCacheMode, getCacheRegion, getComment, getFetchSize, getHibernateFlushMode, getLockOptions, 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, setFetchSize, setFirstResult, setFloat, setFloat, setFlushMode, setHibernateFlushMode, setInteger, setInteger, setLocale, setLocale, setLockMode, setLockOptions, setLong, setLong, setMaxResults, 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, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterList
getFirstResult, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound
public ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName)
session
- The sessionprocedureName
- The name of the procedure to callpublic ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, Class... resultClasses)
session
- The sessionprocedureName
- The name of the procedure to callresultClasses
- The classes making up the resultpublic ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, String... resultSetMappings)
session
- The sessionprocedureName
- The name of the procedure to callresultSetMappings
- The names of the result set mappings making up the resultpublic ProcedureParameterMetadata getParameterMetadata()
Query
getParameterMetadata
in class AbstractProducedQuery<R>
public QueryParameterBindings getQueryParameterBindings()
getQueryParameterBindings
in class AbstractProducedQuery<R>
public SharedSessionContractImplementor getSession()
getSession
in interface ResultContext
public ParameterStrategy getParameterStrategy()
public String getProcedureName()
ProcedureCall
getProcedureName
in interface ProcedureCall
public String getSql()
getSql
in interface ResultContext
public NativeSQLQueryReturn[] getQueryReturns()
getQueryReturns
in interface ResultContext
public <T> ParameterRegistration<T> registerParameter(int position, Class<T> type, ParameterMode mode)
ProcedureCall
registerParameter
in interface ProcedureCall
T
- The parameterized Java type of the parameter.position
- The positiontype
- The Java type of the parametermode
- The parameter mode (in, out, inout)public ProcedureCall registerParameter0(int position, Class type, ParameterMode mode)
ProcedureCall
registerParameter0
in interface ProcedureCall
position
- The positiontype
- The Java type of the parametermode
- The parameter mode (in, out, inout)this
, for method chainingpublic ParameterRegistrationImplementor getParameterRegistration(int position)
ProcedureCall
getParameterRegistration
in interface ProcedureCall
position
- The parameter positionpublic <T> ParameterRegistration<T> registerParameter(String name, Class<T> type, ParameterMode mode)
ProcedureCall
registerParameter
in interface ProcedureCall
T
- The parameterized Java type of the parameter.name
- The parameter nametype
- The Java type of the parametermode
- The parameter mode (in, out, inout)public ProcedureCall registerParameter0(String name, Class type, ParameterMode mode)
ProcedureCall
registerParameter0
in interface ProcedureCall
name
- The parameter nametype
- The Java type of the parametermode
- The parameter mode (in, out, inout)public ParameterRegistrationImplementor getParameterRegistration(String name)
ProcedureCall
getParameterRegistration
in interface ProcedureCall
name
- The parameter namepublic List getRegisteredParameters()
ProcedureCall
getRegisteredParameters
in interface ProcedureCall
public ProcedureOutputs getOutputs()
ProcedureCall
getOutputs
in interface ProcedureCall
public String getQueryString()
Query
public String[] getReturnAliases()
public Type[] getReturnTypes()
BasicQueryContract
getReturnTypes
in interface BasicQueryContract<CommonQueryContract>
public ProcedureCallImplementor<R> setEntity(int position, Object val)
Query
Query.setParameter(int, Object)
for null values.position
- the position of the parameter in the query
string, numbered from 0.val
- a non-null instance of a persistent classthis
, for method chainingpublic ProcedureCallImplementor<R> setEntity(String name, Object val)
Query
Query.setParameter(String, Object)
for null values.name
- the name of the parameterval
- a non-null instance of a persistent classthis
, for method chainingprotected Set<String> synchronizedQuerySpaces()
getSynchronizedQuerySpaces()
when you want to make sure the
underlying Set is instantiated (aka, on add)public Set<String> getSynchronizedQuerySpaces()
SynchronizeableQuery
getSynchronizedQuerySpaces
in interface ResultContext
getSynchronizedQuerySpaces
in interface SynchronizeableQuery
public ProcedureCallImplementor<R> addSynchronizedQuerySpace(String querySpace)
SynchronizeableQuery
addSynchronizedQuerySpace
in interface ProcedureCall
addSynchronizedQuerySpace
in interface SynchronizeableQuery
querySpace
- The query space to be auto-flushed for this query.this
, for method chainingpublic ProcedureCallImplementor<R> addSynchronizedEntityName(String entityName)
SynchronizeableQuery
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)
for all tables associated with the given entity.addSynchronizedEntityName
in interface ProcedureCall
addSynchronizedEntityName
in interface SynchronizeableQuery
entityName
- The name of the entity upon whose defined query spaces we should additionally synchronize.this
, for method chainingprotected void addSynchronizedQuerySpaces(EntityPersister persister)
public ProcedureCallImplementor<R> addSynchronizedEntityClass(Class entityClass)
SynchronizeableQuery
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)
for all tables associated with the given entity.addSynchronizedEntityClass
in interface ProcedureCall
addSynchronizedEntityClass
in interface SynchronizeableQuery
entityClass
- The class of the entity upon whose defined query spaces we should additionally synchronize.this
, for method chainingprotected boolean isNativeQuery()
AbstractProducedQuery
isNativeQuery
in class AbstractProducedQuery<R>
true
if it is a native query; false
otherwisepublic QueryParameters getQueryParameters()
getQueryParameters
in interface ResultContext
getQueryParameters
in class AbstractProducedQuery<R>
public ParameterRegistrationImplementor[] collectRefCursorParameters()
public ProcedureCallMemento extractMemento(Map<String,Object> hints)
ProcedureCall
extractMemento
in interface ProcedureCall
hints
- The hints to incorporate into the mementopublic ProcedureCallMemento extractMemento()
ProcedureCall
extractMemento
in interface ProcedureCall
public ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
StoredProcedureQuery
registerStoredProcedureParameter
in interface StoredProcedureQuery
registerStoredProcedureParameter
in interface ProcedureCallImplementor<R>
position
- parameter positiontype
- type of the parametermode
- parameter modepublic ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
StoredProcedureQuery
registerStoredProcedureParameter
in interface StoredProcedureQuery
registerStoredProcedureParameter
in interface ProcedureCallImplementor<R>
parameterName
- name of the parameter as registered or
specified in metadatatype
- type of the parametermode
- parameter modepublic boolean execute()
StoredProcedureQuery
execute
in interface StoredProcedureQuery
protected ProcedureOutputs outputs()
public int executeUpdate()
Query
executeUpdate
in interface Query
executeUpdate
in interface StoredProcedureQuery
executeUpdate
in class AbstractProducedQuery<R>
public Object getOutputParameterValue(int position)
StoredProcedureQuery
getOutputParameterValue
in interface StoredProcedureQuery
position
- parameter positionpublic Object getOutputParameterValue(String parameterName)
StoredProcedureQuery
getOutputParameterValue
in interface StoredProcedureQuery
parameterName
- name of the parameter as registered or
specified in metadatapublic boolean hasMoreResults()
StoredProcedureQuery
hasMoreResults
in interface StoredProcedureQuery
public int getUpdateCount()
StoredProcedureQuery
getUpdateCount
in interface StoredProcedureQuery
public 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>
getResultList
in interface ProcedureCallImplementor<R>
public R getSingleResult()
TypedQuery
getSingleResult
in interface Query
getSingleResult
in interface StoredProcedureQuery
getSingleResult
in interface TypedQuery<R>
getSingleResult
in interface ProcedureCallImplementor<R>
getSingleResult
in class AbstractProducedQuery<R>
public <T> T unwrap(Class<T> cls)
Query
PersistenceException
is thrown.unwrap
in interface Query
unwrap
in class AbstractProducedQuery<R>
cls
- the class of the object to be returned. This is
normally either the underlying query
implementation class or an interface that it
implements.public ProcedureCallImplementor<R> setLockMode(LockModeType lockMode)
TypedQuery
setLockMode
in interface Query
setLockMode
in interface TypedQuery<R>
setLockMode
in class AbstractProducedQuery<R>
lockMode
- lock modepublic LockModeType getLockMode()
Query
getLockMode
in interface Query
getLockMode
in class AbstractProducedQuery<R>
public ProcedureCallImplementor<R> setHint(String hintName, Object value)
TypedQuery
setHint
in interface Query
setHint
in interface StoredProcedureQuery
setHint
in interface TypedQuery<R>
setHint
in interface ProcedureCallImplementor<R>
setHint
in class AbstractProducedQuery<R>
hintName
- name of property or hintvalue
- value for the property or hintpublic ProcedureCallImplementor<R> setFlushMode(FlushModeType flushModeType)
TypedQuery
setFlushMode
in interface Query
setFlushMode
in interface StoredProcedureQuery
setFlushMode
in interface TypedQuery<R>
setFlushMode
in interface ProcedureCallImplementor<R>
setFlushMode
in class AbstractProducedQuery<R>
flushModeType
- flush modepublic <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value)
Query
Query.setParameter(QueryParameter, Object, Type)
should be used insteadsetParameter
in class AbstractProducedQuery<R>
parameter
- The query parameter mementovalue
- the possibly-null parameter valuethis
, for method chainingpublic <P> ProcedureCallImplementor<R> setParameter(Parameter<P> parameter, P value)
TypedQuery
Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
parameter
- parameter objectvalue
- parameter valuepublic ProcedureCallImplementor<R> setParameter(String name, Object value)
TypedQuery
setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
name
- parameter namevalue
- parameter valuepublic ProcedureCallImplementor<R> setParameter(int position, Object value)
TypedQuery
setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
position
- positionvalue
- parameter valuepublic <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value, Type type)
Query
setParameter
in class AbstractProducedQuery<R>
parameter
- The query parameter mementovalue
- the possibly-null parameter valuetype
- the Hibernate typethis
, for method chainingpublic ProcedureCallImplementor<R> setParameter(String name, Object value, Type type)
Query
setParameter
in class AbstractProducedQuery<R>
name
- the name of the parametervalue
- the possibly-null parameter valuetype
- the Hibernate typethis
, for method chainingpublic ProcedureCallImplementor<R> setParameter(int position, Object value, Type type)
Query
setParameter
in class AbstractProducedQuery<R>
position
- the position of the parameter in the query
string, numbered from 0.value
- the possibly-null parameter valuetype
- the Hibernate typethis
, for method chainingpublic <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value, TemporalType temporalType)
Query
setParameter
in class AbstractProducedQuery<R>
parameter
- The query parameter mementovalue
- the possibly-null parameter valuetemporalType
- the temporal-type to use in binding the date/timethis
, for method chainingpublic ProcedureCallImplementor<R> setParameter(String name, Object value, TemporalType temporalType)
Query
setParameter
in class AbstractProducedQuery<R>
name
- the parameter namevalue
- the possibly-null parameter valuetemporalType
- the temporal-type to use in binding the date/timethis
, for method chainingpublic ProcedureCallImplementor<R> setParameter(int position, Object value, TemporalType temporalType)
Query
setParameter
in class AbstractProducedQuery<R>
position
- the position of the parameter in the query
string, numbered from 0.value
- the possibly-null parameter valuetemporalType
- the temporal-type to use in binding the date/timethis
, for method chainingpublic ProcedureCallImplementor<R> setParameter(Parameter parameter, Calendar value, TemporalType temporalType)
TypedQuery
java.util.Calendar
to a Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
parameter
- parameter objectvalue
- parameter valuetemporalType
- temporal typepublic ProcedureCallImplementor<R> setParameter(Parameter parameter, Date value, TemporalType temporalType)
TypedQuery
java.util.Date
to a Parameter
object.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
parameter
- parameter objectvalue
- parameter valuetemporalType
- temporal typepublic ProcedureCallImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType)
TypedQuery
java.util.Calendar
to a named parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
name
- parameter namevalue
- parameter valuetemporalType
- temporal typepublic ProcedureCallImplementor<R> setParameter(String name, Date value, TemporalType temporalType)
TypedQuery
java.util.Date
to a named parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
name
- parameter namevalue
- parameter valuetemporalType
- temporal typepublic ProcedureCallImplementor<R> setParameter(int position, Calendar value, TemporalType temporalType)
TypedQuery
java.util.Calendar
to a positional
parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
position
- positionvalue
- parameter valuetemporalType
- temporal typepublic ProcedureCallImplementor<R> setParameter(int position, Date value, TemporalType temporalType)
TypedQuery
java.util.Date
to a positional parameter.setParameter
in interface Query
setParameter
in interface StoredProcedureQuery
setParameter
in interface TypedQuery<R>
setParameter
in interface ProcedureCallImplementor<R>
setParameter
in class AbstractProducedQuery<R>
position
- positionvalue
- parameter valuetemporalType
- temporal typeCopyright © 2019 JBoss by Red Hat. All rights reserved.