public class StoredProcedureQueryImpl extends BaseQueryImpl implements StoredProcedureQuery
BaseQueryImpl.ParameterBindImpl<T>| Constructor and Description | 
|---|
StoredProcedureQueryImpl(ProcedureCall procedureCall,
                        HibernateEntityManagerImplementor entityManager)  | 
StoredProcedureQueryImpl(ProcedureCallMemento memento,
                        HibernateEntityManagerImplementor entityManager)
This form is used to build a StoredProcedureQueryImpl from a memento (usually from a NamedStoredProcedureQuery). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
applyAliasSpecificLockModeHint(String alias,
                              LockMode lockMode)
Apply the alias specific lock modes. 
 | 
protected boolean | 
applyCacheableHint(boolean isCacheable)
Apply the cacheable (true/false) hint. 
 | 
protected boolean | 
applyCacheModeHint(CacheMode cacheMode)
Apply the CacheMode hint. 
 | 
protected boolean | 
applyCacheRegionHint(String regionName)
Apply the cache region hint 
 | 
protected boolean | 
applyCommentHint(String comment)
Apply the comment hint. 
 | 
protected boolean | 
applyFetchSizeHint(int fetchSize)
Apply the fetch size hint 
 | 
protected void | 
applyFirstResult(int firstResult)
Apply the given first-result value. 
 | 
protected boolean | 
applyFlushModeHint(FlushMode flushMode)
Apply the FlushMode hint. 
 | 
protected boolean | 
applyLockTimeoutHint(int timeout)
Apply the lock timeout (in seconds!) hint 
 | 
protected void | 
applyMaxResults(int maxResults)
Apply the given max results value. 
 | 
protected boolean | 
applyReadOnlyHint(boolean isReadOnly)
Apply the read-only (true/false) hint. 
 | 
protected boolean | 
applyTimeoutHint(int timeout)
Apply the query timeout hint. 
 | 
protected boolean | 
canApplyAliasSpecificLockModeHints()
Can alias-specific lock modes be applied? 
 | 
boolean | 
execute()  | 
int | 
executeUpdate()  | 
ProcedureCall | 
getHibernateProcedureCall()  | 
LockModeType | 
getLockMode()  | 
Object | 
getOutputParameterValue(int position)  | 
Object | 
getOutputParameterValue(String parameterName)  | 
List | 
getResultList()  | 
Object | 
getSingleResult()  | 
int | 
getUpdateCount()  | 
boolean | 
hasMoreResults()  | 
protected void | 
internalApplyLockMode(LockModeType lockModeType)  | 
protected boolean | 
isNativeSqlQuery()
Is the query represented here a native SQL query? 
 | 
protected boolean | 
isSelectQuery()
Is the query represented here a SELECT query? 
 | 
protected ProcedureOutputs | 
outputs()  | 
StoredProcedureQuery | 
registerStoredProcedureParameter(int position,
                                Class type,
                                ParameterMode mode)  | 
StoredProcedureQuery | 
registerStoredProcedureParameter(String parameterName,
                                Class type,
                                ParameterMode mode)  | 
StoredProcedureQueryImpl | 
setFlushMode(FlushModeType jpaFlushMode)  | 
StoredProcedureQueryImpl | 
setHint(String hintName,
       Object value)  | 
Query | 
setLockMode(LockModeType lockMode)  | 
StoredProcedureQueryImpl | 
setParameter(int position,
            Calendar value,
            TemporalType temporalType)  | 
StoredProcedureQueryImpl | 
setParameter(int position,
            Date value,
            TemporalType temporalType)  | 
StoredProcedureQueryImpl | 
setParameter(int position,
            Object value)  | 
StoredProcedureQueryImpl | 
setParameter(Parameter<Calendar> param,
            Calendar value,
            TemporalType temporalType)  | 
StoredProcedureQueryImpl | 
setParameter(Parameter<Date> param,
            Date value,
            TemporalType temporalType)  | 
<T> StoredProcedureQueryImpl | 
setParameter(Parameter<T> param,
            T value)  | 
StoredProcedureQueryImpl | 
setParameter(String name,
            Calendar value,
            TemporalType temporalType)  | 
StoredProcedureQueryImpl | 
setParameter(String name,
            Date value,
            TemporalType temporalType)  | 
StoredProcedureQueryImpl | 
setParameter(String name,
            Object value)  | 
<T> T | 
unwrap(Class<T> cls)  | 
checkOpen, entityManager, findParameterRegistration, findParameterRegistration, findParameterRegistration, getEntityGraphQueryHint, getFirstResult, getFlushMode, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getSpecifiedFlushMode, getSpecifiedMaxResults, getSupportedHints, isBound, registerParameter, setFirstResult, setMaxResults, validateBindingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstResult, getFlushMode, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, setFirstResult, setMaxResultspublic StoredProcedureQueryImpl(ProcedureCall procedureCall, HibernateEntityManagerImplementor entityManager)
public StoredProcedureQueryImpl(ProcedureCallMemento memento, HibernateEntityManagerImplementor entityManager)
memento - The mementoentityManager - The EntityManagerprotected boolean applyTimeoutHint(int timeout)
BaseQueryImplapplyTimeoutHint in class BaseQueryImpltimeout - The timeout (in seconds!) specified as a hinttrue if the hint was "applied"protected boolean applyCacheableHint(boolean isCacheable)
BaseQueryImplapplyCacheableHint in class BaseQueryImplisCacheable - The value specified as hinttrue if the hint was "applied"protected boolean applyCacheRegionHint(String regionName)
BaseQueryImplapplyCacheRegionHint in class BaseQueryImplregionName - The name of the cache region specified as a hinttrue if the hint was "applied"protected boolean applyReadOnlyHint(boolean isReadOnly)
BaseQueryImplapplyReadOnlyHint in class BaseQueryImplisReadOnly - The value specified as hinttrue if the hint was "applied"protected boolean applyCacheModeHint(CacheMode cacheMode)
BaseQueryImplapplyCacheModeHint in class BaseQueryImplcacheMode - The CacheMode value specified as a hint.true if the hint was "applied"protected boolean applyFlushModeHint(FlushMode flushMode)
BaseQueryImplapplyFlushModeHint in class BaseQueryImplflushMode - The FlushMode value specified as hinttrue if the hint was "applied"public StoredProcedureQuery registerStoredProcedureParameter(int position, Class type, ParameterMode mode)
registerStoredProcedureParameter in interface StoredProcedureQuerypublic StoredProcedureQuery registerStoredProcedureParameter(String parameterName, Class type, ParameterMode mode)
registerStoredProcedureParameter in interface StoredProcedureQuerypublic <T> StoredProcedureQueryImpl setParameter(Parameter<T> param, T value)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(String name, Object value)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(String name, Calendar value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(String name, Date value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, Object value)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, Calendar value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, Date value, TemporalType temporalType)
setParameter in interface QuerysetParameter in interface StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setFlushMode(FlushModeType jpaFlushMode)
setFlushMode in interface QuerysetFlushMode in interface StoredProcedureQuerysetFlushMode in class BaseQueryImplpublic StoredProcedureQueryImpl setHint(String hintName, Object value)
setHint in interface QuerysetHint in interface StoredProcedureQuerysetHint in class BaseQueryImplpublic boolean execute()
execute in interface StoredProcedureQueryprotected ProcedureOutputs outputs()
public int executeUpdate()
executeUpdate in interface Querypublic Object getOutputParameterValue(int position)
getOutputParameterValue in interface StoredProcedureQuerypublic Object getOutputParameterValue(String parameterName)
getOutputParameterValue in interface StoredProcedureQuerypublic boolean hasMoreResults()
hasMoreResults in interface StoredProcedureQuerypublic int getUpdateCount()
getUpdateCount in interface StoredProcedureQuerypublic List getResultList()
getResultList in interface Querypublic Object getSingleResult()
getSingleResult in interface Queryprotected boolean isNativeSqlQuery()
BaseQueryImplisNativeSqlQuery in class BaseQueryImpltrue if it is a native SQL query; false otherwiseprotected boolean isSelectQuery()
BaseQueryImplisSelectQuery in class BaseQueryImpltrue if the query is a SELECT; false otherwise.public Query setLockMode(LockModeType lockMode)
setLockMode in interface Querypublic LockModeType getLockMode()
getLockMode in interface Queryprotected void internalApplyLockMode(LockModeType lockModeType)
internalApplyLockMode in class BaseQueryImplprotected void applyFirstResult(int firstResult)
BaseQueryImplapplyFirstResult in class BaseQueryImplfirstResult - The specified first-result value.protected void applyMaxResults(int maxResults)
BaseQueryImplapplyMaxResults in class BaseQueryImplmaxResults - The specified max resultsprotected boolean canApplyAliasSpecificLockModeHints()
BaseQueryImplcanApplyAliasSpecificLockModeHints in class BaseQueryImpltrue indicates they can be applied, false otherwise.protected void applyAliasSpecificLockModeHint(String alias, LockMode lockMode)
BaseQueryImplBaseQueryImpl.canApplyAliasSpecificLockModeHints() has already been
 called and returned true.applyAliasSpecificLockModeHint in class BaseQueryImplalias - The alias to apply the 'lockMode' to.lockMode - The LockMode to apply.protected boolean applyLockTimeoutHint(int timeout)
BaseQueryImplapplyLockTimeoutHint in class BaseQueryImpltimeout - The timeout (in seconds!) specified as a hinttrue if the hint was "applied"protected boolean applyCommentHint(String comment)
BaseQueryImplapplyCommentHint in class BaseQueryImplcomment - The comment specified as a hinttrue if the hint was "applied"protected boolean applyFetchSizeHint(int fetchSize)
BaseQueryImplapplyFetchSizeHint in class BaseQueryImplfetchSize - The fetch size specified as a hinttrue if the hint was "applied"public ProcedureCall getHibernateProcedureCall()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.