public abstract class AbstractQueryImpl<X> extends BaseQueryImpl implements TypedQuery<X>
Query
and TypedQuery
, including
query references built from criteria queries.
Not intended as base for StoredProcedureQuery
BaseQueryImpl.ParameterBindImpl<T>
Constructor and Description |
---|
AbstractQueryImpl(HibernateEntityManagerImplementor entityManager) |
applyAliasSpecificLockModeHint, applyCacheableHint, applyCacheModeHint, applyCacheRegionHint, applyCommentHint, applyFetchSizeHint, applyFirstResult, applyFlushModeHint, applyLockTimeoutHint, applyMaxResults, applyReadOnlyHint, applyTimeoutHint, canApplyAliasSpecificLockModeHints, checkOpen, entityManager, findParameterRegistration, findParameterRegistration, findParameterRegistration, getEntityGraphQueryHint, getFirstResult, getFlushMode, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getSpecifiedFlushMode, getSpecifiedMaxResults, internalApplyLockMode, isBound, isNativeSqlQuery, isSelectQuery, registerParameter, validateBinding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultList, getSingleResult
getFirstResult, getFlushMode, getHints, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
public AbstractQueryImpl(HibernateEntityManagerImplementor entityManager)
protected HibernateEntityManagerImplementor getEntityManager()
protected abstract int internalExecuteUpdate()
public int executeUpdate()
executeUpdate
in interface Query
public AbstractQueryImpl<X> setMaxResults(int maxResults)
setMaxResults
in interface Query
setMaxResults
in interface TypedQuery<X>
setMaxResults
in class BaseQueryImpl
public AbstractQueryImpl<X> setFirstResult(int firstResult)
setFirstResult
in interface Query
setFirstResult
in interface TypedQuery<X>
setFirstResult
in class BaseQueryImpl
public AbstractQueryImpl<X> setHint(String hintName, Object value)
setHint
in interface Query
setHint
in interface TypedQuery<X>
setHint
in class BaseQueryImpl
public Set<String> getSupportedHints()
getSupportedHints
in class BaseQueryImpl
public TypedQuery<X> setLockMode(LockModeType lockModeType)
setLockMode
in interface Query
setLockMode
in interface TypedQuery<X>
public LockModeType getLockMode()
getLockMode
in interface Query
public <T> AbstractQueryImpl<X> setParameter(Parameter<T> param, T value)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(String name, Object value)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(String name, Calendar value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(String name, Date value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(int position, Object value)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(int position, Calendar value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setParameter(int position, Date value, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
setParameter
in class BaseQueryImpl
public AbstractQueryImpl<X> setFlushMode(FlushModeType jpaFlushMode)
setFlushMode
in interface Query
setFlushMode
in interface TypedQuery<X>
setFlushMode
in class BaseQueryImpl
protected void checkTransaction()
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.