org.hibernate.ejb
Class QueryImpl
java.lang.Object
org.hibernate.ejb.QueryImpl
- All Implemented Interfaces:
- Query, HibernateQuery
public class QueryImpl
- extends Object
- implements Query, HibernateQuery
- Author:
- Gavin King, Emmanuel Bernard
Method Summary |
int |
executeUpdate()
|
org.hibernate.Query |
getHibernateQuery()
|
List |
getResultList()
|
Object |
getSingleResult()
|
Query |
setFirstResult(int firstResult)
|
Query |
setFlushMode(FlushModeType flushMode)
|
Query |
setHint(String hintName,
Object value)
|
Query |
setMaxResults(int maxResult)
|
Query |
setParameter(int position,
Calendar value,
TemporalType temporalType)
|
Query |
setParameter(int position,
Date value,
TemporalType temporalType)
|
Query |
setParameter(int position,
Object value)
|
Query |
setParameter(String name,
Calendar value,
TemporalType temporalType)
|
Query |
setParameter(String name,
Date value,
TemporalType temporalType)
|
Query |
setParameter(String name,
Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryImpl
public QueryImpl(org.hibernate.Query query,
AbstractEntityManagerImpl em)
getHibernateQuery
public org.hibernate.Query getHibernateQuery()
- Specified by:
getHibernateQuery
in interface HibernateQuery
executeUpdate
public int executeUpdate()
- Specified by:
executeUpdate
in interface Query
getResultList
public List getResultList()
- Specified by:
getResultList
in interface Query
getSingleResult
public Object getSingleResult()
- Specified by:
getSingleResult
in interface Query
setMaxResults
public Query setMaxResults(int maxResult)
- Specified by:
setMaxResults
in interface Query
setFirstResult
public Query setFirstResult(int firstResult)
- Specified by:
setFirstResult
in interface Query
setHint
public Query setHint(String hintName,
Object value)
- Specified by:
setHint
in interface Query
setParameter
public Query setParameter(String name,
Object value)
- Specified by:
setParameter
in interface Query
setParameter
public Query setParameter(String name,
Date value,
TemporalType temporalType)
- Specified by:
setParameter
in interface Query
setParameter
public Query setParameter(String name,
Calendar value,
TemporalType temporalType)
- Specified by:
setParameter
in interface Query
setParameter
public Query setParameter(int position,
Object value)
- Specified by:
setParameter
in interface Query
setParameter
public Query setParameter(int position,
Date value,
TemporalType temporalType)
- Specified by:
setParameter
in interface Query
setParameter
public Query setParameter(int position,
Calendar value,
TemporalType temporalType)
- Specified by:
setParameter
in interface Query
setFlushMode
public Query setFlushMode(FlushModeType flushMode)
- Specified by:
setFlushMode
in interface Query
Copyright © 2011. All Rights Reserved.