public class QueryImpl extends AbstractQueryImpl
CollectionFilterImplparameterMetadata, 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, verifyParameterspublic QueryImpl(String queryString, FlushMode flushMode, SessionImplementor session, ParameterMetadata parameterMetadata)
public QueryImpl(String queryString, SessionImplementor session, ParameterMetadata parameterMetadata)
public Iterator iterate() throws HibernateException
QueryHibernateExceptionpublic ScrollableResults scroll() throws HibernateException
QueryHibernateExceptionScrollableResultspublic ScrollableResults scroll(ScrollMode scrollMode) throws HibernateException
QueryHibernateExceptionScrollableResults,
ScrollModepublic List list() throws HibernateException
QueryHibernateExceptionpublic int executeUpdate()
throws HibernateException
QueryHibernateExceptionpublic Query setLockMode(String alias, LockMode lockMode)
Queryalias - a query alias, or this for a collection filterpublic Query setLockOptions(LockOptions lockOption)
Querypublic LockOptions getLockOptions()
getLockOptions in class AbstractQueryImplCopyright © 2012 JBoss by Red Hat. All Rights Reserved.