类 ProcedureCallImpl<R>
- java.lang.Object
-
- org.hibernate.query.internal.AbstractProducedQuery<R>
-
- org.hibernate.procedure.internal.ProcedureCallImpl<R>
-
- 所有已实现的接口:
javax.persistence.Query,javax.persistence.StoredProcedureQuery,javax.persistence.TypedQuery<R>,BasicQueryContract<CommonQueryContract>,ProcedureCall,ProcedureCallImplementor<R>,Query<R>,CommonQueryContract,Query<R>,QueryImplementor<R>,ResultContext,SynchronizeableQuery
public class ProcedureCallImpl<R> extends AbstractProducedQuery<R> implements ProcedureCallImplementor<R>, ResultContext
Standard implementation ofProcedureCall- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName)The no-returns form.ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, Class... resultClasses)The result Class(es) return formProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, String... resultSetMappings)The result-set-mapping(s) return form
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 voidaddSynchronizedQuerySpaces(EntityPersister persister)ParameterRegistrationImplementor[]collectRefCursorParameters()Collects any parameter registrations which indicate a REF_CURSOR parameter type/mode.booleanexecute()intexecuteUpdate()ProcedureCallMementoextractMemento()Extract the disconnected representation of this call.ProcedureCallMementoextractMemento(Map<String,Object> hints)Extract the disconnected representation of this call.javax.persistence.LockModeTypegetLockMode()ObjectgetOutputParameterValue(int position)ObjectgetOutputParameterValue(String parameterName)ProcedureOutputsgetOutputs()Retrieves access to outputs of this procedure call.ProcedureParameterMetadatagetParameterMetadata()Access to information about query parameters.ParameterRegistrationImplementorgetParameterRegistration(int position)Retrieve a previously registered parameter memento by the position under which it was registered.ParameterRegistrationImplementorgetParameterRegistration(String name)Retrieve a previously registered parameter memento by the name under which it was registered.ParameterStrategygetParameterStrategy()StringgetProcedureName()Get the name of the stored procedure to be called.QueryParameterBindingsgetQueryParameterBindings()QueryParametersgetQueryParameters()NativeSQLQueryReturn[]getQueryReturns()StringgetQueryString()Get the query string.ListgetRegisteredParameters()Retrieve all registered parameters.List<R>getResultList()StreamgetResultStream()String[]getReturnAliases()Type[]getReturnTypes()Return the Hibernate types of the query results.SharedSessionContractImplementorgetSession()RgetSingleResult()StringgetSql()Set<String>getSynchronizedQuerySpaces()Obtain the list of query spaces the query is synchronized on.intgetUpdateCount()booleanhasMoreResults()protected booleanisNativeQuery()Is the query represented here a native (SQL) query?protected ProcedureOutputsoutputs()<T> ParameterRegistration<T>registerParameter(int position, Class<T> type, javax.persistence.ParameterMode mode)Basic form for registering a positional parameter.<T> ParameterRegistration<T>registerParameter(String name, Class<T> type, javax.persistence.ParameterMode mode)Basic form for registering a named parameter.ProcedureCallregisterParameter0(int position, Class type, javax.persistence.ParameterMode mode)ProcedureCallregisterParameter0(String name, Class type, javax.persistence.ParameterMode mode)ProcedureCallImplementor<R>registerStoredProcedureParameter(int position, Class type, javax.persistence.ParameterMode mode)ProcedureCallImplementor<R>registerStoredProcedureParameter(String parameterName, Class type, javax.persistence.ParameterMode mode)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(javax.persistence.FlushModeType flushModeType)ProcedureCallImplementor<R>setHint(String hintName, Object value)ProcedureCallImplementor<R>setLockMode(javax.persistence.LockModeType lockMode)ProcedureCallImplementor<R>setParameter(int position, Object value)Bind a positional query parameter using its inferred Type.ProcedureCallImplementor<R>setParameter(int position, Object value, javax.persistence.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.ProcedureCallImplementor<R>setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)ProcedureCallImplementor<R>setParameter(int position, Date value, javax.persistence.TemporalType temporalType)ProcedureCallImplementor<R>setParameter(String name, Object value)Bind a named query parameter using its inferred Type.ProcedureCallImplementor<R>setParameter(String name, Object value, javax.persistence.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 TypeProcedureCallImplementor<R>setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)ProcedureCallImplementor<R>setParameter(String name, Date value, javax.persistence.TemporalType temporalType)<P> ProcedureCallImplementor<R>setParameter(javax.persistence.Parameter<P> parameter, P value)ProcedureCallImplementor<R>setParameter(javax.persistence.Parameter parameter, Calendar value, javax.persistence.TemporalType temporalType)ProcedureCallImplementor<R>setParameter(javax.persistence.Parameter parameter, Date value, javax.persistence.TemporalType temporalType)<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, javax.persistence.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 Typeprotected Set<String>synchronizedQuerySpaces()Use this form instead ofgetSynchronizedQuerySpaces()when you want to make sure the underlying Set is instantiated (aka, on add)<T> Tunwrap(Class<T> cls)-
从类继承的方法 org.hibernate.query.internal.AbstractProducedQuery
addQueryHint, afterQuery, applyAliasSpecificLockModeHint, applyCacheableHint, applyCacheModeHint, applyCacheRegionHint, applyCommentHint, applyEntityGraphQueryHint, applyFetchSizeHint, applyFlushModeHint, applyFollowOnLockingHint, applyGraph, 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
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 javax.persistence.Query
getFirstResult, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound
-
从接口继承的方法 org.hibernate.Query
determineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, getTimeout, isCacheable, isReadOnly, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterList
-
从接口继承的方法 org.hibernate.query.Query
addQueryHint, applyFetchGraph, applyGraph, applyLoadGraph, getCacheMode, getCacheRegion, getComment, getFetchSize, getHibernateFlushMode, getLockOptions, 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
-
从接口继承的方法 org.hibernate.query.spi.QueryImplementor
getProducer, setOptionalEntityName, setOptionalId, setOptionalObject
-
-
-
-
构造器详细资料
-
ProcedureCallImpl
public ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName)
The no-returns form.- 参数:
session- The sessionprocedureName- The name of the procedure to call
-
ProcedureCallImpl
public ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, Class... resultClasses)
The result Class(es) return form- 参数:
session- The sessionprocedureName- The name of the procedure to callresultClasses- The classes making up the result
-
ProcedureCallImpl
public ProcedureCallImpl(SharedSessionContractImplementor session, String procedureName, String... resultSetMappings)
The result-set-mapping(s) return form- 参数:
session- The sessionprocedureName- The name of the procedure to callresultSetMappings- The names of the result set mappings making up the result
-
-
方法详细资料
-
getParameterMetadata
public ProcedureParameterMetadata getParameterMetadata()
从接口复制的说明:QueryAccess to information about query parameters.- 指定者:
getParameterMetadata在接口中Query<R>- 指定者:
getParameterMetadata在接口中Query<R>- 覆盖:
getParameterMetadata在类中AbstractProducedQuery<R>- 返回:
- information about query parameters.
-
getQueryParameterBindings
public QueryParameterBindings getQueryParameterBindings()
- 指定者:
getQueryParameterBindings在类中AbstractProducedQuery<R>
-
getSession
public SharedSessionContractImplementor getSession()
- 指定者:
getSession在接口中ResultContext
-
getParameterStrategy
public ParameterStrategy getParameterStrategy()
-
getProcedureName
public String getProcedureName()
从接口复制的说明:ProcedureCallGet the name of the stored procedure to be called.- 指定者:
getProcedureName在接口中ProcedureCall- 返回:
- The procedure name.
-
getSql
public String getSql()
- 指定者:
getSql在接口中ResultContext
-
getQueryReturns
public NativeSQLQueryReturn[] getQueryReturns()
- 指定者:
getQueryReturns在接口中ResultContext
-
registerParameter
public <T> ParameterRegistration<T> registerParameter(int position, Class<T> type, javax.persistence.ParameterMode mode)
从接口复制的说明:ProcedureCallBasic form for registering a positional parameter.- 指定者:
registerParameter在接口中ProcedureCall- 类型参数:
T- The parameterized Java type of the parameter.- 参数:
position- The positiontype- The Java type of the parametermode- The parameter mode (in, out, inout)- 返回:
- The parameter registration memento
-
registerParameter0
public ProcedureCall registerParameter0(int position, Class type, javax.persistence.ParameterMode mode)
从接口复制的说明:ProcedureCall- 指定者:
registerParameter0在接口中ProcedureCall- 参数:
position- The positiontype- The Java type of the parametermode- The parameter mode (in, out, inout)- 返回:
this, for method chaining
-
getParameterRegistration
public ParameterRegistrationImplementor getParameterRegistration(int position)
从接口复制的说明:ProcedureCallRetrieve a previously registered parameter memento by the position under which it was registered.- 指定者:
getParameterRegistration在接口中ProcedureCall- 参数:
position- The parameter position- 返回:
- The parameter registration memento
-
registerParameter
public <T> ParameterRegistration<T> registerParameter(String name, Class<T> type, javax.persistence.ParameterMode mode)
从接口复制的说明:ProcedureCallBasic form for registering a named parameter.- 指定者:
registerParameter在接口中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)- 返回:
- The parameter registration memento
-
registerParameter0
public ProcedureCall registerParameter0(String name, Class type, javax.persistence.ParameterMode mode)
从接口复制的说明:ProcedureCall- 指定者:
registerParameter0在接口中ProcedureCall- 参数:
name- The parameter nametype- The Java type of the parametermode- The parameter mode (in, out, inout)- 返回:
- The parameter registration memento
-
getParameterRegistration
public ParameterRegistrationImplementor getParameterRegistration(String name)
从接口复制的说明:ProcedureCallRetrieve a previously registered parameter memento by the name under which it was registered.- 指定者:
getParameterRegistration在接口中ProcedureCall- 参数:
name- The parameter name- 返回:
- The parameter registration memento
-
getRegisteredParameters
public List getRegisteredParameters()
从接口复制的说明:ProcedureCallRetrieve all registered parameters.- 指定者:
getRegisteredParameters在接口中ProcedureCall- 返回:
- The (immutable) list of all registered parameters.
-
getOutputs
public ProcedureOutputs getOutputs()
从接口复制的说明:ProcedureCallRetrieves access to outputs of this procedure call. Can be called multiple times, returning the same ProcedureOutputs instance each time. If the procedure call has not actually be executed yet, it will be executed and then the ProcedureOutputs will be returned.- 指定者:
getOutputs在接口中ProcedureCall- 返回:
- The ProcedureOutputs representation
-
getQueryString
public String getQueryString()
从接口复制的说明:QueryGet the query string.- 指定者:
getQueryString在接口中Query<R>- 指定者:
getQueryString在接口中Query<R>- 返回:
- the query string
-
getReturnAliases
public String[] getReturnAliases()
- 指定者:
getReturnAliases在接口中Query<R>
-
getReturnTypes
public Type[] getReturnTypes()
从接口复制的说明:BasicQueryContractReturn the Hibernate types of the query results.- 指定者:
getReturnTypes在接口中BasicQueryContract<R>- 指定者:
getReturnTypes在接口中Query<R>- 返回:
- an array of types
-
setEntity
public ProcedureCallImplementor<R> setEntity(int position, Object val)
从接口复制的说明:QueryBind an instance of a mapped persistent class to a JDBC-style query parameter. UseQuery.setParameter(int, Object)for null values.
-
setEntity
public ProcedureCallImplementor<R> setEntity(String name, Object val)
从接口复制的说明:QueryBind an instance of a mapped persistent class to a named query parameter. UseQuery.setParameter(String, Object)for null values.
-
synchronizedQuerySpaces
protected Set<String> synchronizedQuerySpaces()
Use this form instead ofgetSynchronizedQuerySpaces()when you want to make sure the underlying Set is instantiated (aka, on add)- 返回:
- The spaces
-
getSynchronizedQuerySpaces
public Set<String> getSynchronizedQuerySpaces()
从接口复制的说明:SynchronizeableQueryObtain the list of query spaces the query is synchronized on.- 指定者:
getSynchronizedQuerySpaces在接口中ResultContext- 指定者:
getSynchronizedQuerySpaces在接口中SynchronizeableQuery<R>- 返回:
- The list of query spaces upon which the query is synchronized.
-
addSynchronizedQuerySpace
public ProcedureCallImplementor<R> addSynchronizedQuerySpace(String querySpace)
从接口复制的说明:SynchronizeableQueryAdds a query space.- 指定者:
addSynchronizedQuerySpace在接口中ProcedureCall- 指定者:
addSynchronizedQuerySpace在接口中SynchronizeableQuery<R>- 参数:
querySpace- The query space to be auto-flushed for this query.- 返回:
this, for method chaining
-
addSynchronizedEntityName
public ProcedureCallImplementor<R> addSynchronizedEntityName(String entityName)
从接口复制的说明:SynchronizeableQueryAdds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking. Same asSynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)for all tables associated with the given entity.- 指定者:
addSynchronizedEntityName在接口中ProcedureCall- 指定者:
addSynchronizedEntityName在接口中SynchronizeableQuery<R>- 参数:
entityName- The name of the entity upon whose defined query spaces we should additionally synchronize.- 返回:
this, for method chaining
-
addSynchronizedQuerySpaces
protected void addSynchronizedQuerySpaces(EntityPersister persister)
-
addSynchronizedEntityClass
public ProcedureCallImplementor<R> addSynchronizedEntityClass(Class entityClass)
从接口复制的说明:SynchronizeableQueryAdds an entity for (a) auto-flush checking and (b) query result cache invalidation checking. Same asSynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String)for all tables associated with the given entity.- 指定者:
addSynchronizedEntityClass在接口中ProcedureCall- 指定者:
addSynchronizedEntityClass在接口中SynchronizeableQuery<R>- 参数:
entityClass- The class of the entity upon whose defined query spaces we should additionally synchronize.- 返回:
this, for method chaining
-
isNativeQuery
protected boolean isNativeQuery()
从类复制的说明:AbstractProducedQueryIs the query represented here a native (SQL) query?- 指定者:
isNativeQuery在类中AbstractProducedQuery<R>- 返回:
trueif it is a native query;falseotherwise
-
getQueryParameters
public QueryParameters getQueryParameters()
- 指定者:
getQueryParameters在接口中ResultContext- 覆盖:
getQueryParameters在类中AbstractProducedQuery<R>
-
collectRefCursorParameters
public ParameterRegistrationImplementor[] collectRefCursorParameters()
Collects any parameter registrations which indicate a REF_CURSOR parameter type/mode.- 返回:
- The collected REF_CURSOR type parameters.
-
extractMemento
public ProcedureCallMemento extractMemento(Map<String,Object> hints)
从接口复制的说明:ProcedureCallExtract the disconnected representation of this call. Used in HEM to allow redefining a named query- 指定者:
extractMemento在接口中ProcedureCall- 参数:
hints- The hints to incorporate into the memento- 返回:
- The memento
-
extractMemento
public ProcedureCallMemento extractMemento()
从接口复制的说明:ProcedureCallExtract the disconnected representation of this call. Used in HEM to allow redefining a named query *- 指定者:
extractMemento在接口中ProcedureCall- 返回:
- The memento
-
registerStoredProcedureParameter
public ProcedureCallImplementor<R> registerStoredProcedureParameter(int position, Class type, javax.persistence.ParameterMode mode)
- 指定者:
registerStoredProcedureParameter在接口中ProcedureCallImplementor<R>- 指定者:
registerStoredProcedureParameter在接口中javax.persistence.StoredProcedureQuery
-
registerStoredProcedureParameter
public ProcedureCallImplementor<R> registerStoredProcedureParameter(String parameterName, Class type, javax.persistence.ParameterMode mode)
- 指定者:
registerStoredProcedureParameter在接口中ProcedureCallImplementor<R>- 指定者:
registerStoredProcedureParameter在接口中javax.persistence.StoredProcedureQuery
-
execute
public boolean execute()
- 指定者:
execute在接口中javax.persistence.StoredProcedureQuery
-
outputs
protected ProcedureOutputs outputs()
-
executeUpdate
public int executeUpdate()
- 指定者:
executeUpdate在接口中javax.persistence.Query- 指定者:
executeUpdate在接口中javax.persistence.StoredProcedureQuery- 覆盖:
executeUpdate在类中AbstractProducedQuery<R>
-
getOutputParameterValue
public Object getOutputParameterValue(int position)
- 指定者:
getOutputParameterValue在接口中javax.persistence.StoredProcedureQuery
-
getOutputParameterValue
public Object getOutputParameterValue(String parameterName)
- 指定者:
getOutputParameterValue在接口中javax.persistence.StoredProcedureQuery
-
hasMoreResults
public boolean hasMoreResults()
- 指定者:
hasMoreResults在接口中javax.persistence.StoredProcedureQuery
-
getUpdateCount
public int getUpdateCount()
- 指定者:
getUpdateCount在接口中javax.persistence.StoredProcedureQuery
-
getResultList
public List<R> getResultList()
- 指定者:
getResultList在接口中ProcedureCallImplementor<R>- 指定者:
getResultList在接口中javax.persistence.Query- 指定者:
getResultList在接口中Query<R>- 指定者:
getResultList在接口中javax.persistence.StoredProcedureQuery- 指定者:
getResultList在接口中javax.persistence.TypedQuery<R>
-
getSingleResult
public R getSingleResult()
- 指定者:
getSingleResult在接口中ProcedureCallImplementor<R>- 指定者:
getSingleResult在接口中javax.persistence.Query- 指定者:
getSingleResult在接口中Query<R>- 指定者:
getSingleResult在接口中javax.persistence.StoredProcedureQuery- 指定者:
getSingleResult在接口中javax.persistence.TypedQuery<R>- 覆盖:
getSingleResult在类中AbstractProducedQuery<R>
-
unwrap
public <T> T unwrap(Class<T> cls)
- 指定者:
unwrap在接口中javax.persistence.Query- 覆盖:
unwrap在类中AbstractProducedQuery<R>
-
setLockMode
public ProcedureCallImplementor<R> setLockMode(javax.persistence.LockModeType lockMode)
- 指定者:
setLockMode在接口中javax.persistence.Query- 指定者:
setLockMode在接口中Query<R>- 指定者:
setLockMode在接口中Query<R>- 指定者:
setLockMode在接口中javax.persistence.TypedQuery<R>- 覆盖:
setLockMode在类中AbstractProducedQuery<R>
-
getLockMode
public javax.persistence.LockModeType getLockMode()
- 指定者:
getLockMode在接口中javax.persistence.Query- 覆盖:
getLockMode在类中AbstractProducedQuery<R>
-
setHint
public ProcedureCallImplementor<R> setHint(String hintName, Object value)
-
setFlushMode
public ProcedureCallImplementor<R> setFlushMode(javax.persistence.FlushModeType flushModeType)
- 指定者:
setFlushMode在接口中ProcedureCallImplementor<R>- 指定者:
setFlushMode在接口中javax.persistence.Query- 指定者:
setFlushMode在接口中Query<R>- 指定者:
setFlushMode在接口中Query<R>- 指定者:
setFlushMode在接口中javax.persistence.StoredProcedureQuery- 指定者:
setFlushMode在接口中javax.persistence.TypedQuery<R>- 覆盖:
setFlushMode在类中AbstractProducedQuery<R>
-
setParameter
public <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value)
从接口复制的说明:QueryBind a 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(QueryParameter, Object, Type)should be used instead- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
parameter- The query parameter mementovalue- the possibly-null parameter value- 返回:
this, for method chaining
-
setParameter
public <P> ProcedureCallImplementor<R> setParameter(javax.persistence.Parameter<P> parameter, P value)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(String name, Object value)
从接口复制的说明: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- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
name- the parameter namevalue- the (possibly-null) parameter value- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(int position, Object value)
从接口复制的说明: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- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
position- the position of the parameter in the query string, numbered from 0.value- the possibly-null parameter value- 返回:
this, for method chaining
-
setParameter
public <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value, Type type)
从接口复制的说明:QueryBind a query parameter using the supplied Type- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
parameter- The query parameter mementovalue- the possibly-null parameter valuetype- the Hibernate type- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(String name, Object value, Type type)
从接口复制的说明:QueryBind a named query parameter using the supplied Type- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
name- the name of the parametervalue- the possibly-null parameter valuetype- the Hibernate type- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(int position, Object value, Type type)
从接口复制的说明:QueryBind a value to a JDBC-style query parameter.- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
position- the position of the parameter in the query string, numbered from 0.value- the possibly-null parameter valuetype- the Hibernate type- 返回:
this, for method chaining
-
setParameter
public <P> ProcedureCallImplementor<R> setParameter(QueryParameter<P> parameter, P value, javax.persistence.TemporalType temporalType)
从接口复制的说明:QueryBind a query parameter as some form of date/time using the indicated temporal-type.- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
parameter- The query parameter mementovalue- the possibly-null parameter valuetemporalType- the temporal-type to use in binding the date/time- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(String name, Object value, javax.persistence.TemporalType temporalType)
从接口复制的说明:QueryBind a named query parameter as some form of date/time using the indicated temporal-type.- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>- 参数:
name- the parameter namevalue- the possibly-null parameter valuetemporalType- the temporal-type to use in binding the date/time- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(int position, Object value, javax.persistence.TemporalType temporalType)
从接口复制的说明:QueryBind a positional query parameter as some form of date/time using the indicated temporal-type.- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 覆盖:
setParameter在类中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/time- 返回:
this, for method chaining
-
setParameter
public ProcedureCallImplementor<R> setParameter(javax.persistence.Parameter parameter, Calendar value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(javax.persistence.Parameter parameter, Date value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
setParameter
public ProcedureCallImplementor<R> setParameter(int position, Date value, javax.persistence.TemporalType temporalType)
- 指定者:
setParameter在接口中ProcedureCallImplementor<R>- 指定者:
setParameter在接口中javax.persistence.Query- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中Query<R>- 指定者:
setParameter在接口中javax.persistence.StoredProcedureQuery- 指定者:
setParameter在接口中javax.persistence.TypedQuery<R>- 覆盖:
setParameter在类中AbstractProducedQuery<R>
-
getResultStream
public Stream getResultStream()
从接口复制的说明:QueryJPA 2.2 defines thegetResultStreammethod so to get aStreamfrom the JDBCResultSet. Hibernate 5.2 already defines theQuery.stream()method, sogetResultStreamcan delegate to it.- 指定者:
getResultStream在接口中javax.persistence.Query- 指定者:
getResultStream在接口中Query<R>- 指定者:
getResultStream在接口中javax.persistence.TypedQuery<R>- 返回:
- The results Stream
-
-