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, uniqueResultOptionalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProducer, setOptionalEntityName, setOptionalId, setOptionalObjectaddQueryHint, 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, uniqueResultOptionaldetermineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterListgetFirstResult, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBoundpublic 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()
QuerygetParameterMetadata in class AbstractProducedQuery<R>public QueryParameterBindings getQueryParameterBindings()
getQueryParameterBindings in class AbstractProducedQuery<R>public SharedSessionContractImplementor getSession()
getSession in interface ResultContextpublic ParameterStrategy getParameterStrategy()
public String getProcedureName()
ProcedureCallgetProcedureName in interface ProcedureCallpublic String getSql()
getSql in interface ResultContextpublic NativeSQLQueryReturn[] getQueryReturns()
getQueryReturns in interface ResultContextpublic <T> ParameterRegistration<T> registerParameter(int position, Class<T> type, ParameterMode mode)
ProcedureCallregisterParameter in interface ProcedureCallT - 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)
ProcedureCallregisterParameter0 in interface ProcedureCallposition - The positiontype - The Java type of the parametermode - The parameter mode (in, out, inout)this, for method chainingpublic ParameterRegistrationImplementor getParameterRegistration(int position)
ProcedureCallgetParameterRegistration in interface ProcedureCallposition - The parameter positionpublic <T> ParameterRegistration<T> registerParameter(String name, Class<T> type, ParameterMode mode)
ProcedureCallregisterParameter in interface ProcedureCallT - 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)
ProcedureCallregisterParameter0 in interface ProcedureCallname - The parameter nametype - The Java type of the parametermode - The parameter mode (in, out, inout)public ParameterRegistrationImplementor getParameterRegistration(String name)
ProcedureCallgetParameterRegistration in interface ProcedureCallname - The parameter namepublic List getRegisteredParameters()
ProcedureCallgetRegisteredParameters in interface ProcedureCallpublic ProcedureOutputs getOutputs()
ProcedureCallgetOutputs in interface ProcedureCallpublic String getQueryString()
Querypublic String[] getReturnAliases()
public Type[] getReturnTypes()
BasicQueryContractgetReturnTypes in interface BasicQueryContract<CommonQueryContract>public ProcedureCallImplementor<R> setEntity(int position, Object val)
QueryQuery.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)
QueryQuery.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()
SynchronizeableQuerygetSynchronizedQuerySpaces in interface ResultContextgetSynchronizedQuerySpaces in interface SynchronizeableQuerypublic ProcedureCallImplementor<R> addSynchronizedQuerySpace(String querySpace)
SynchronizeableQueryaddSynchronizedQuerySpace in interface ProcedureCalladdSynchronizedQuerySpace in interface SynchronizeableQueryquerySpace - The query space to be auto-flushed for this query.this, for method chainingpublic ProcedureCallImplementor<R> addSynchronizedEntityName(String entityName)
SynchronizeableQuerySynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.addSynchronizedEntityName in interface ProcedureCalladdSynchronizedEntityName in interface SynchronizeableQueryentityName - 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)
SynchronizeableQuerySynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.addSynchronizedEntityClass in interface ProcedureCalladdSynchronizedEntityClass in interface SynchronizeableQueryentityClass - The class of the entity upon whose defined query spaces we should additionally synchronize.this, for method chainingprotected boolean isNativeQuery()
AbstractProducedQueryisNativeQuery in class AbstractProducedQuery<R>true if it is a native query; false otherwisepublic QueryParameters getQueryParameters()
getQueryParameters in interface ResultContextgetQueryParameters in class AbstractProducedQuery<R>public ParameterRegistrationImplementor[] collectRefCursorParameters()
public ProcedureCallMemento extractMemento(Map<String,Object> hints)
ProcedureCallextractMemento in interface ProcedureCallhints - The hints to incorporate into the mementopublic ProcedureCallMemento extractMemento()
ProcedureCallextractMemento in interface ProcedureCallpublic ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
StoredProcedureQueryregisterStoredProcedureParameter in interface StoredProcedureQueryregisterStoredProcedureParameter in interface ProcedureCallImplementor<R>position - parameter positiontype - type of the parametermode - parameter modepublic ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
StoredProcedureQueryregisterStoredProcedureParameter in interface StoredProcedureQueryregisterStoredProcedureParameter in interface ProcedureCallImplementor<R>parameterName - name of the parameter as registered or
specified in metadatatype - type of the parametermode - parameter modepublic boolean execute()
StoredProcedureQueryexecute in interface StoredProcedureQueryprotected ProcedureOutputs outputs()
public int executeUpdate()
QueryexecuteUpdate in interface QueryexecuteUpdate in interface StoredProcedureQueryexecuteUpdate in class AbstractProducedQuery<R>public Object getOutputParameterValue(int position)
StoredProcedureQuerygetOutputParameterValue in interface StoredProcedureQueryposition - parameter positionpublic Object getOutputParameterValue(String parameterName)
StoredProcedureQuerygetOutputParameterValue in interface StoredProcedureQueryparameterName - name of the parameter as registered or
specified in metadatapublic boolean hasMoreResults()
StoredProcedureQueryhasMoreResults in interface StoredProcedureQuerypublic int getUpdateCount()
StoredProcedureQuerygetUpdateCount in interface StoredProcedureQuerypublic List<R> getResultList()
StoredProcedureQueryexecute 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 QuerygetResultList in interface StoredProcedureQuerygetResultList in interface TypedQuery<R>getResultList in interface ProcedureCallImplementor<R>public R getSingleResult()
TypedQuerygetSingleResult in interface QuerygetSingleResult in interface StoredProcedureQuerygetSingleResult in interface TypedQuery<R>getSingleResult in interface ProcedureCallImplementor<R>getSingleResult in class AbstractProducedQuery<R>public <T> T unwrap(Class<T> cls)
QueryPersistenceException is thrown.unwrap in interface Queryunwrap 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)
TypedQuerysetLockMode in interface QuerysetLockMode in interface TypedQuery<R>setLockMode in class AbstractProducedQuery<R>lockMode - lock modepublic LockModeType getLockMode()
QuerygetLockMode in interface QuerygetLockMode in class AbstractProducedQuery<R>public ProcedureCallImplementor<R> setHint(String hintName, Object value)
TypedQuerysetHint in interface QuerysetHint in interface StoredProcedureQuerysetHint 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)
TypedQuerysetFlushMode in interface QuerysetFlushMode in interface StoredProcedureQuerysetFlushMode 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)
QueryQuery.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)
TypedQueryParameter object.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQuerysetParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQuerysetParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
QuerysetParameter 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)
QuerysetParameter 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)
QuerysetParameter 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)
QuerysetParameter 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)
QuerysetParameter 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)
QuerysetParameter 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)
TypedQueryjava.util.Calendar to a Parameter object.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQueryjava.util.Date to a Parameter object.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQueryjava.util.Calendar to a named parameter.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQueryjava.util.Date to a named parameter.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQueryjava.util.Calendar to a positional
parameter.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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)
TypedQueryjava.util.Date to a positional parameter.setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter 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.