public class QueryImpl extends AbstractQueryImpl
CollectionFilterImpl
parameterMetadata, session
Constructor and Description |
---|
QueryImpl(String queryString,
FlushMode flushMode,
SessionImplementor session,
ParameterMetadata parameterMetadata) |
QueryImpl(String queryString,
SessionImplementor session,
ParameterMetadata parameterMetadata) |
Modifier and Type | Method and Description |
---|---|
int |
executeUpdate()
Execute the update or delete statement.
|
LockOptions |
getLockOptions() |
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.
|
ScrollableResults |
scroll(ScrollMode scrollMode)
Return the query results as ScrollableResults.
|
Query |
setLockMode(String alias,
LockMode lockMode)
Set the lockmode for the objects idententified by the
given alias that appears in the FROM clause.
|
Query |
setLockOptions(LockOptions lockOption)
Set the lock options for the objects idententified by the
given alias that appears in the FROM clause.
|
after, before, determineType, determineType, determineType, determineType, determineType, expandParameterLists, getCacheMode, getNamedParameterLists, getNamedParameters, getNamedParams, getParameterMetadata, getQueryParameters, getQueryString, getReturnAliases, getReturnTypes, getRowSelection, getSelection, 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, setProperties, setReadOnly, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimeout, setTimestamp, setTimestamp, toString, typeArray, uniqueResult, valueArray, verifyParameters, verifyParameters
public QueryImpl(String queryString, FlushMode flushMode, SessionImplementor session, ParameterMetadata parameterMetadata)
public QueryImpl(String queryString, SessionImplementor session, ParameterMetadata parameterMetadata)
public Iterator iterate() throws HibernateException
Query
HibernateException
public ScrollableResults scroll() throws HibernateException
Query
HibernateException
ScrollableResults
public ScrollableResults scroll(ScrollMode scrollMode) throws HibernateException
Query
HibernateException
ScrollableResults
,
ScrollMode
public List list() throws HibernateException
Query
HibernateException
public int executeUpdate() throws HibernateException
Query
HibernateException
public Query setLockMode(String alias, LockMode lockMode)
Query
alias
- a query alias, or this for a collection filterpublic Query setLockOptions(LockOptions lockOption)
Query
public LockOptions getLockOptions()
getLockOptions
in class AbstractQueryImpl
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.