java.lang.Object
org.hibernate.impl.AbstractQueryImpl
org.hibernate.impl.QueryImpl
- All Implemented Interfaces:
- org.hibernate.Query
- Direct Known Subclasses:
- CollectionFilterImpl
- public class QueryImpl
- extends AbstractQueryImpl
default implementation of the Query interface,
for "ordinary" HQL queries (not collection filters)
| Methods inherited from class org.hibernate.impl.AbstractQueryImpl |
after, before, determineType, determineType, determineType, expandParameterLists, getNamedParameterLists, getNamedParameters, getNamedParams, getQueryParameters, getQueryString, getReturnAliases, getReturnTypes, getRowSelection, getSelection, getSession, getTypes, getValues, hasNamedParameters, isReadOnly, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCacheable, setCacheMode, setCacheRegion, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setCollectionKey, setComment, setDate, setDate, setDouble, setDouble, setEntity, setEntity, setFetchSize, setFirstResult, setFloat, setFloat, setFlushMode, setInteger, setInteger, setLocale, setLocale, setLong, setLong, setMaxResults, setOptionalEntityName, setOptionalId, setOptionalObject, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameters, setProperties, setReadOnly, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimeout, setTimestamp, setTimestamp, toString, typeArray, uniqueElement, uniqueResult, valueArray, verifyParameters, verifyParameters |
lockModes
private java.util.Map lockModes
QueryImpl
public QueryImpl(java.lang.String queryString,
org.hibernate.FlushMode flushMode,
org.hibernate.engine.SessionImplementor session,
org.hibernate.engine.query.ParameterMetadata parameterMetadata)
QueryImpl
public QueryImpl(java.lang.String queryString,
org.hibernate.engine.SessionImplementor session,
org.hibernate.engine.query.ParameterMetadata parameterMetadata)
iterate
public java.util.Iterator iterate()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.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.
scroll
public org.hibernate.ScrollableResults scroll()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.Query
- Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
scroll
public org.hibernate.ScrollableResults scroll(org.hibernate.ScrollMode scrollMode)
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.Query
- Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
list
public java.util.List list()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.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[].
executeUpdate
public int executeUpdate()
throws org.hibernate.HibernateException
- Description copied from interface:
org.hibernate.Query
- Execute the update or delete statement.
The semantics are compliant with the ejb3 Query.executeUpdate()
method.
setLockMode
public org.hibernate.Query setLockMode(java.lang.String alias,
org.hibernate.LockMode lockMode)
- Description copied from interface:
org.hibernate.Query
- Set the lockmode for the objects idententified by the
given alias that appears in the FROM clause.
getLockModes
protected java.util.Map getLockModes()
- Specified by:
getLockModes in class AbstractQueryImpl