当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
QueryImpl (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.impl
Class QueryImpl
java.lang.Object
net.sf.hibernate.impl.AbstractQueryImpl
net.sf.hibernate.impl.QueryImpl
- All Implemented Interfaces:
- Query
- Direct Known Subclasses:
- FilterImpl
- public class QueryImpl
- extends AbstractQueryImpl
default implementation of the Query interface,
for "ordinary" HQL queries (not collection filters)
- Author:
- Gavin King
- See Also:
FilterImpl
Methods inherited from class net.sf.hibernate.impl.AbstractQueryImpl |
bindParameterLists, getNamedParameterLists, getNamedParameters, getNamedParams, getQueryParameters, getQueryString, getReturnTypes, getRowSelection, getSelection, getTypes, getValues, setBigDecimal, setBigDecimal, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCacheable, setCacheRegion, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setDate, setDate, setDouble, setDouble, setEntity, setEntity, setEnum, setEnum, setFetchSize, setFirstResult, setFloat, setFloat, setForceCacheRefresh, setInteger, setInteger, setLocale, setLocale, setLockMode, setLong, setLong, setMaxResults, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setProperties, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimeout, setTimestamp, setTimestamp, typeArray, uniqueResult, valueArray, verifyParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryImpl
public QueryImpl(String queryString,
SessionImplementor session)
iterate
public Iterator iterate()
throws HibernateException
- Description copied from interface:
Query
- Return the query results as an Iterator. If the query
contains multiple results pre row, the results are returned in
an instance of Object[].
Entities returned as results are initialized on demand. The first
SQL query returns identifiers only.
- Returns:
- the result iterator
- Throws:
HibernateException
scroll
public ScrollableResults scroll()
throws HibernateException
- Description copied from interface:
Query
- Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
Entities returned as results are initialized on demand. The first
SQL query returns identifier only.
- Returns:
- the result iterator
- Throws:
HibernateException
- See Also:
ScrollableResults
scroll
public ScrollableResults scroll(ScrollMode scrollMode)
throws HibernateException
- Description copied from interface:
Query
- Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
- Returns:
- the result iterator
- Throws:
HibernateException
- See Also:
ScrollableResults
,
ScrollMode
list
public List list()
throws HibernateException
- Description copied from interface:
Query
- Return the query results as a List. If the query contains
multiple results pre row, the results are returned in an instance
of Object[].
- Returns:
- the result list
- Throws:
HibernateException