|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.ejb.AbstractQueryImpl<X>
public abstract class AbstractQueryImpl<X>
Intended as a base class providing convenience in implementing both Query
and
TypedQuery
.
Constructor Summary | |
---|---|
AbstractQueryImpl(HibernateEntityManagerImplementor entityManager)
|
Method Summary | ||
---|---|---|
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()
|
|
FlushModeType |
getFlushMode()
|
|
Map<String,Object> |
getHints()
|
|
abstract LockModeType |
getLockMode()
|
|
int |
getMaxResults()
|
|
Object |
getParameterValue(int position)
|
|
|
getParameterValue(Parameter<T> param)
|
|
Object |
getParameterValue(String name)
|
|
protected FlushModeType |
getSpecifiedFlushMode()
|
|
int |
getSpecifiedMaxResults()
|
|
Set<String> |
getSupportedHints()
|
|
protected abstract int |
internalExecuteUpdate()
Actually execute the update; all pre-requisites have been checked. |
|
boolean |
isBound(Parameter<?> param)
|
|
protected void |
registerParameterBinding(Parameter parameter,
Object value)
|
|
TypedQuery<X> |
setFirstResult(int firstResult)
|
|
TypedQuery<X> |
setFlushMode(FlushModeType jpaFlushMode)
|
|
TypedQuery<X> |
setHint(String hintName,
Object value)
|
|
abstract TypedQuery<X> |
setLockMode(LockModeType lockModeType)
|
|
TypedQuery<X> |
setMaxResults(int maxResult)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.persistence.TypedQuery |
---|
getResultList, getSingleResult, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter |
Methods inherited from interface javax.persistence.Query |
---|
getParameter, getParameter, getParameter, getParameter, getParameters, unwrap |
Constructor Detail |
---|
public AbstractQueryImpl(HibernateEntityManagerImplementor entityManager)
Method Detail |
---|
protected HibernateEntityManagerImplementor getEntityManager()
protected abstract int internalExecuteUpdate()
public int executeUpdate()
executeUpdate
in interface Query
protected abstract void applyMaxResults(int maxResults)
maxResults
- The specified max resultspublic TypedQuery<X> setMaxResults(int maxResult)
setMaxResults
in interface Query
setMaxResults
in interface TypedQuery<X>
public int getSpecifiedMaxResults()
public int getMaxResults()
getMaxResults
in interface Query
protected abstract void applyFirstResult(int firstResult)
firstResult
- The specified first-result value.public TypedQuery<X> setFirstResult(int firstResult)
setFirstResult
in interface Query
setFirstResult
in interface TypedQuery<X>
public int getFirstResult()
getFirstResult
in interface Query
public Map<String,Object> getHints()
getHints
in interface Query
protected 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 TypedQuery<X> setHint(String hintName, Object value)
setHint
in interface Query
setHint
in interface TypedQuery<X>
public Set<String> getSupportedHints()
public abstract TypedQuery<X> setLockMode(LockModeType lockModeType)
setLockMode
in interface Query
setLockMode
in interface TypedQuery<X>
public abstract LockModeType getLockMode()
getLockMode
in interface Query
public TypedQuery<X> setFlushMode(FlushModeType jpaFlushMode)
setFlushMode
in interface Query
setFlushMode
in interface TypedQuery<X>
protected FlushModeType getSpecifiedFlushMode()
public FlushModeType getFlushMode()
getFlushMode
in interface Query
protected void registerParameterBinding(Parameter parameter, Object value)
public boolean isBound(Parameter<?> param)
isBound
in interface Query
public <T> T getParameterValue(Parameter<T> param)
getParameterValue
in interface Query
public Object getParameterValue(String name)
getParameterValue
in interface Query
public Object getParameterValue(int position)
getParameterValue
in interface Query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |