|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.hibernate.impl.AbstractQueryImpl
net.sf.hibernate.impl.SQLQueryImpl
Implements SQL query passthrough.
SELECT {person}.NAME AS {person.name}, {person}.AGE AS {person.age}, {person}.SEX AS {person.sex} FROM PERSON {person} WHERE {person}.NAME LIKE 'Hiber%'
Method Summary | |
String[] |
getReturnAliases()
|
Class[] |
getReturnClasses()
|
Type[] |
getReturnTypes()
Return the Hibernate types of the query result set. |
Iterator |
iterate()
Return the query results as an Iterator. |
List |
list()
Return the query results as a List. |
ScrollableResults |
scroll()
Return the query results as ScrollableResults. |
Query |
setCacheable(boolean cacheable)
Enable caching of this query result set. |
Query |
setCacheRegion(String regionName)
Set the name of the cache region. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public String[] getReturnAliases()
public Class[] getReturnClasses()
public List list() throws HibernateException
Query
HibernateException
public Iterator iterate() throws HibernateException
Query
HibernateException
public ScrollableResults scroll() throws HibernateException
Query
HibernateException
ScrollableResults
public Query setCacheable(boolean cacheable)
Query
public Query setCacheRegion(String regionName)
Query
regionName
- the name of a query cache region, or null
for the default query cachepublic Type[] getReturnTypes() throws HibernateException
Query
getReturnTypes
in interface Query
getReturnTypes
in class AbstractQueryImpl
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |