public class CriteriaQueryTypeQueryAdapter<X> extends Object implements TypedQuery<X>, HibernateQuery
Constructor and Description |
---|
CriteriaQueryTypeQueryAdapter(HibernateEntityManagerImplementor entityManager,
QueryImpl<X> jpqlQuery,
Map<ParameterExpression<?>,ExplicitParameterInfo<?>> explicitParameterInfoMap) |
public CriteriaQueryTypeQueryAdapter(HibernateEntityManagerImplementor entityManager, QueryImpl<X> jpqlQuery, Map<ParameterExpression<?>,ExplicitParameterInfo<?>> explicitParameterInfoMap)
public Query getHibernateQuery()
HibernateQuery
getHibernateQuery
in interface HibernateQuery
public List<X> getResultList()
getResultList
in interface Query
getResultList
in interface TypedQuery<X>
public X getSingleResult()
getSingleResult
in interface Query
getSingleResult
in interface TypedQuery<X>
public int getMaxResults()
getMaxResults
in interface Query
public TypedQuery<X> setMaxResults(int i)
setMaxResults
in interface Query
setMaxResults
in interface TypedQuery<X>
public int getFirstResult()
getFirstResult
in interface Query
public TypedQuery<X> setFirstResult(int i)
setFirstResult
in interface Query
setFirstResult
in interface TypedQuery<X>
public TypedQuery<X> setHint(String name, Object value)
setHint
in interface Query
setHint
in interface TypedQuery<X>
public FlushModeType getFlushMode()
getFlushMode
in interface Query
public TypedQuery<X> setFlushMode(FlushModeType flushModeType)
setFlushMode
in interface Query
setFlushMode
in interface TypedQuery<X>
public LockModeType getLockMode()
getLockMode
in interface Query
public TypedQuery<X> setLockMode(LockModeType lockModeType)
setLockMode
in interface Query
setLockMode
in interface TypedQuery<X>
public Set<Parameter<?>> getParameters()
getParameters
in interface Query
public <T> T getParameterValue(Parameter<T> param)
getParameterValue
in interface Query
public <T> TypedQuery<X> setParameter(Parameter<T> param, T t)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(Parameter<Calendar> param, Calendar calendar, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(Parameter<Date> param, Date date, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public Object getParameterValue(String name)
getParameterValue
in interface Query
public Parameter<?> getParameter(String name)
getParameter
in interface Query
public <T> Parameter<T> getParameter(String name, Class<T> type)
getParameter
in interface Query
public TypedQuery<X> setParameter(String name, Object value)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(String name, Calendar calendar, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(String name, Date date, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public int executeUpdate()
executeUpdate
in interface Query
public TypedQuery<X> setParameter(int i, Object o)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(int i, Calendar calendar, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public TypedQuery<X> setParameter(int i, Date date, TemporalType temporalType)
setParameter
in interface Query
setParameter
in interface TypedQuery<X>
public Object getParameterValue(int position)
getParameterValue
in interface Query
public Parameter<?> getParameter(int position)
getParameter
in interface Query
public <T> Parameter<T> getParameter(int position, Class<T> type)
getParameter
in interface Query
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.