public class StoredProcedureQueryImpl extends BaseQueryImpl implements javax.persistence.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(java.lang.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(java.lang.String regionName)
Apply the cache region hint
|
protected boolean |
applyCommentHint(java.lang.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() |
javax.persistence.LockModeType |
getLockMode() |
java.lang.Object |
getOutputParameterValue(int position) |
java.lang.Object |
getOutputParameterValue(java.lang.String parameterName) |
java.util.List |
getResultList() |
java.lang.Object |
getSingleResult() |
int |
getUpdateCount() |
boolean |
hasMoreResults() |
protected void |
internalApplyLockMode(javax.persistence.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() |
javax.persistence.StoredProcedureQuery |
registerStoredProcedureParameter(int position,
java.lang.Class type,
javax.persistence.ParameterMode mode) |
javax.persistence.StoredProcedureQuery |
registerStoredProcedureParameter(java.lang.String parameterName,
java.lang.Class type,
javax.persistence.ParameterMode mode) |
StoredProcedureQueryImpl |
setFlushMode(javax.persistence.FlushModeType jpaFlushMode) |
StoredProcedureQueryImpl |
setHint(java.lang.String hintName,
java.lang.Object value) |
javax.persistence.Query |
setLockMode(javax.persistence.LockModeType lockMode) |
StoredProcedureQueryImpl |
setParameter(int position,
java.util.Calendar value,
javax.persistence.TemporalType temporalType) |
StoredProcedureQueryImpl |
setParameter(int position,
java.util.Date value,
javax.persistence.TemporalType temporalType) |
StoredProcedureQueryImpl |
setParameter(int position,
java.lang.Object value) |
StoredProcedureQueryImpl |
setParameter(javax.persistence.Parameter<java.util.Calendar> param,
java.util.Calendar value,
javax.persistence.TemporalType temporalType) |
StoredProcedureQueryImpl |
setParameter(javax.persistence.Parameter<java.util.Date> param,
java.util.Date value,
javax.persistence.TemporalType temporalType) |
<T> StoredProcedureQueryImpl |
setParameter(javax.persistence.Parameter<T> param,
T value) |
StoredProcedureQueryImpl |
setParameter(java.lang.String name,
java.util.Calendar value,
javax.persistence.TemporalType temporalType) |
StoredProcedureQueryImpl |
setParameter(java.lang.String name,
java.util.Date value,
javax.persistence.TemporalType temporalType) |
StoredProcedureQueryImpl |
setParameter(java.lang.String name,
java.lang.Object value) |
<T> T |
unwrap(java.lang.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, validateBindingpublic 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(java.lang.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 javax.persistence.StoredProcedureQuery registerStoredProcedureParameter(int position,
java.lang.Class type,
javax.persistence.ParameterMode mode)
registerStoredProcedureParameter in interface javax.persistence.StoredProcedureQuerypublic javax.persistence.StoredProcedureQuery registerStoredProcedureParameter(java.lang.String parameterName,
java.lang.Class type,
javax.persistence.ParameterMode mode)
registerStoredProcedureParameter in interface javax.persistence.StoredProcedureQuerypublic <T> StoredProcedureQueryImpl setParameter(javax.persistence.Parameter<T> param, T value)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(javax.persistence.Parameter<java.util.Calendar> param, java.util.Calendar value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(javax.persistence.Parameter<java.util.Date> param, java.util.Date value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(java.lang.String name, java.lang.Object value)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(java.lang.String name, java.util.Calendar value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(java.lang.String name, java.util.Date value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, java.lang.Object value)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, java.util.Calendar value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setParameter(int position, java.util.Date value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.QuerysetParameter in interface javax.persistence.StoredProcedureQuerysetParameter in class BaseQueryImplpublic StoredProcedureQueryImpl setFlushMode(javax.persistence.FlushModeType jpaFlushMode)
setFlushMode in interface javax.persistence.QuerysetFlushMode in interface javax.persistence.StoredProcedureQuerysetFlushMode in class BaseQueryImplpublic StoredProcedureQueryImpl setHint(java.lang.String hintName, java.lang.Object value)
setHint in interface javax.persistence.QuerysetHint in interface javax.persistence.StoredProcedureQuerysetHint in class BaseQueryImplpublic boolean execute()
execute in interface javax.persistence.StoredProcedureQueryprotected ProcedureOutputs outputs()
public int executeUpdate()
executeUpdate in interface javax.persistence.Querypublic java.lang.Object getOutputParameterValue(int position)
getOutputParameterValue in interface javax.persistence.StoredProcedureQuerypublic java.lang.Object getOutputParameterValue(java.lang.String parameterName)
getOutputParameterValue in interface javax.persistence.StoredProcedureQuerypublic boolean hasMoreResults()
hasMoreResults in interface javax.persistence.StoredProcedureQuerypublic int getUpdateCount()
getUpdateCount in interface javax.persistence.StoredProcedureQuerypublic java.util.List getResultList()
getResultList in interface javax.persistence.Querypublic java.lang.Object getSingleResult()
getSingleResult in interface javax.persistence.Querypublic <T> T unwrap(java.lang.Class<T> cls)
unwrap in interface javax.persistence.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 javax.persistence.Query setLockMode(javax.persistence.LockModeType lockMode)
setLockMode in interface javax.persistence.Querypublic javax.persistence.LockModeType getLockMode()
getLockMode in interface javax.persistence.Queryprotected void internalApplyLockMode(javax.persistence.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(java.lang.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(java.lang.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-2018 Red Hat, Inc. All Rights Reserved.