public abstract class AbstractQueryImpl<X> extends Object implements javax.persistence.TypedQuery<X>
Query and
TypedQuery.
IMPL NOTE : This issue, and the reason for this distinction, is that criteria and hl.sql queries share no
commonality currently in Hibernate internals.| Constructor and Description |
|---|
AbstractQueryImpl(HibernateEntityManagerImplementor entityManager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyAliasSpecificLockMode(String alias,
LockMode lockMode) |
protected abstract void |
applyCacheable(boolean isCacheable) |
protected abstract void |
applyCacheMode(CacheMode cacheMode) |
protected abstract void |
applyCacheRegion(String regionName) |
protected abstract void |
applyComment(String comment) |
protected abstract void |
applyFetchSize(int fetchSize) |
protected abstract void |
applyFirstResult(int firstResult)
Apply the given first-result value.
|
protected abstract void |
applyFlushMode(FlushMode flushMode) |
protected abstract void |
applyMaxResults(int maxResults)
Apply the given max results value.
|
protected abstract void |
applyReadOnly(boolean isReadOnly) |
protected abstract void |
applyTimeout(int timeout) |
protected abstract boolean |
canApplyLockModes() |
int |
executeUpdate() |
protected HibernateEntityManagerImplementor |
getEntityManager() |
int |
getFirstResult() |
javax.persistence.FlushModeType |
getFlushMode() |
Map<String,Object> |
getHints() |
abstract javax.persistence.LockModeType |
getLockMode() |
int |
getMaxResults() |
Object |
getParameterValue(int position) |
<T> T |
getParameterValue(javax.persistence.Parameter<T> param) |
Object |
getParameterValue(String name) |
protected javax.persistence.FlushModeType |
getSpecifiedFlushMode() |
int |
getSpecifiedMaxResults() |
Set<String> |
getSupportedHints() |
protected abstract int |
internalExecuteUpdate()
Actually execute the update; all pre-requisites have been checked.
|
boolean |
isBound(javax.persistence.Parameter<?> param) |
protected void |
registerParameterBinding(javax.persistence.Parameter parameter,
Object value) |
javax.persistence.TypedQuery<X> |
setFirstResult(int firstResult) |
javax.persistence.TypedQuery<X> |
setFlushMode(javax.persistence.FlushModeType jpaFlushMode) |
javax.persistence.TypedQuery<X> |
setHint(String hintName,
Object value) |
abstract javax.persistence.TypedQuery<X> |
setLockMode(javax.persistence.LockModeType lockModeType) |
javax.persistence.TypedQuery<X> |
setMaxResults(int maxResult) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AbstractQueryImpl(HibernateEntityManagerImplementor entityManager)
protected HibernateEntityManagerImplementor getEntityManager()
protected abstract int internalExecuteUpdate()
public int executeUpdate()
executeUpdate in interface javax.persistence.Queryprotected abstract void applyMaxResults(int maxResults)
maxResults - The specified max resultspublic javax.persistence.TypedQuery<X> setMaxResults(int maxResult)
setMaxResults in interface javax.persistence.QuerysetMaxResults in interface javax.persistence.TypedQuery<X>public int getSpecifiedMaxResults()
public int getMaxResults()
getMaxResults in interface javax.persistence.Queryprotected abstract void applyFirstResult(int firstResult)
firstResult - The specified first-result value.public javax.persistence.TypedQuery<X> setFirstResult(int firstResult)
setFirstResult in interface javax.persistence.QuerysetFirstResult in interface javax.persistence.TypedQuery<X>public int getFirstResult()
getFirstResult in interface javax.persistence.Querypublic Map<String,Object> getHints()
getHints in interface javax.persistence.Queryprotected abstract void applyTimeout(int timeout)
protected abstract void applyComment(String comment)
protected abstract void applyFetchSize(int fetchSize)
protected abstract void applyCacheable(boolean isCacheable)
protected abstract void applyCacheRegion(String regionName)
protected abstract void applyReadOnly(boolean isReadOnly)
protected abstract void applyCacheMode(CacheMode cacheMode)
protected abstract void applyFlushMode(FlushMode flushMode)
protected abstract boolean canApplyLockModes()
protected abstract void applyAliasSpecificLockMode(String alias, LockMode lockMode)
public javax.persistence.TypedQuery<X> setHint(String hintName, Object value)
setHint in interface javax.persistence.QuerysetHint in interface javax.persistence.TypedQuery<X>public abstract javax.persistence.TypedQuery<X> setLockMode(javax.persistence.LockModeType lockModeType)
setLockMode in interface javax.persistence.QuerysetLockMode in interface javax.persistence.TypedQuery<X>public abstract javax.persistence.LockModeType getLockMode()
getLockMode in interface javax.persistence.Querypublic javax.persistence.TypedQuery<X> setFlushMode(javax.persistence.FlushModeType jpaFlushMode)
setFlushMode in interface javax.persistence.QuerysetFlushMode in interface javax.persistence.TypedQuery<X>protected javax.persistence.FlushModeType getSpecifiedFlushMode()
public javax.persistence.FlushModeType getFlushMode()
getFlushMode in interface javax.persistence.Queryprotected void registerParameterBinding(javax.persistence.Parameter parameter,
Object value)
public boolean isBound(javax.persistence.Parameter<?> param)
isBound in interface javax.persistence.Querypublic <T> T getParameterValue(javax.persistence.Parameter<T> param)
getParameterValue in interface javax.persistence.Querypublic Object getParameterValue(String name)
getParameterValue in interface javax.persistence.Querypublic Object getParameterValue(int position)
getParameterValue in interface javax.persistence.QueryCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved