public class CollectionFilterImpl extends AbstractProducedQuery
Constructor and Description |
---|
CollectionFilterImpl(java.lang.String queryString,
java.lang.Object collection,
SharedSessionContractImplementor session,
ParameterMetadataImpl parameterMetadata) |
Modifier and Type | Method and Description |
---|---|
protected Type[] |
getPositionalParameterTypes() |
protected java.lang.Object[] |
getPositionalParameterValues() |
java.lang.String |
getQueryString() |
java.lang.String[] |
getReturnAliases() |
Type[] |
getReturnTypes()
Return the Hibernate types of the query results.
|
protected boolean |
isNativeQuery()
Is the query represented here a native (SQL) query?
|
java.util.Iterator |
iterate()
Return the query results as an Iterator.
|
java.util.List |
list()
Return the query results as a List.
|
ScrollableResultsImplementor |
scroll()
Return the query results as ScrollableResults.
|
ScrollableResultsImplementor |
scroll(ScrollMode scrollMode)
Return the query results as ScrollableResults.
|
Query |
setEntity(int position,
java.lang.Object val) |
Query |
setEntity(java.lang.String name,
java.lang.Object val) |
addQueryHint, afterQuery, applyAliasSpecificLockModeHint, applyCacheableHint, applyCacheModeHint, applyCacheRegionHint, applyCommentHint, applyEntityGraphQueryHint, applyFetchSizeHint, applyFlushModeHint, applyFollowOnLockingHint, applyHibernateLockModeHint, applyJpaCacheRetrieveMode, applyJpaCacheStoreMode, applyLockModeTypeHint, applyLockTimeoutHint, applyNativeQueryLockMode, applyPassDistinctThrough, applyReadOnlyHint, applyTimeoutHint, beforeQuery, canApplyAliasSpecificLockModeHints, collectBaselineHints, collectHints, determineProperBooleanType, determineProperBooleanType, determineType, doExecuteUpdate, doIterate, doList, doScroll, executeUpdate, getCacheMode, getCacheRegion, getComment, getExceptionConverter, getFetchSize, getFirstResult, getFlushMode, getHibernateFlushMode, getHints, getLockMode, getLockOptions, getMaxResults, getNamedParameterMap, getNamedParameters, getParameter, getParameter, getParameter, getParameter, getParameterMetadata, getParameters, getParameterValue, getParameterValue, getParameterValue, getProducer, getQueryOptions, getQueryParameterBindings, getQueryParameters, getSingleResult, getSupportedHints, getTimeout, isBound, isCacheable, isCallable, isReadOnly, putIfNotNull, putIfNotNull, resolveEntityName, setCacheable, setCacheMode, setCacheRegion, setComment, setFetchSize, setFirstResult, setFlushMode, setFlushMode, setHibernateFlushMode, setHint, setLockMode, setLockMode, setLockOptions, setMaxResults, setOptionalEntityName, setOptionalId, setOptionalObject, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameterList, setParameterList, setParameterList, setParameterList, setParameterList, setProperties, setProperties, setReadOnly, setResultTransformer, setTimeout, stream, uniqueElement, uniqueResult, uniqueResultOptional, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultList, getResultStream, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInteger, setInteger, setLocale, setLocale, setLong, setLong, setParameters, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimestamp, setTimestamp
public CollectionFilterImpl(java.lang.String queryString, java.lang.Object collection, SharedSessionContractImplementor session, ParameterMetadataImpl parameterMetadata)
protected boolean isNativeQuery()
AbstractProducedQuery
isNativeQuery
in class AbstractProducedQuery
true
if it is a native query; false
otherwisepublic java.lang.String getQueryString()
public java.util.Iterator iterate() throws HibernateException
Query
iterate
in class AbstractProducedQuery
HibernateException
public java.util.List list() throws HibernateException
Query
list
in class AbstractProducedQuery
HibernateException
public ScrollableResultsImplementor scroll() throws HibernateException
Query
You should call ScrollableResults.close()
after processing the ScrollableResults
so that the underlying resources are deallocated right away.
scroll
in class AbstractProducedQuery
HibernateException
ScrollableResults
public ScrollableResultsImplementor scroll(ScrollMode scrollMode)
Query
You should call ScrollableResults.close()
after processing the ScrollableResults
so that the underlying resources are deallocated right away.
scroll
in class AbstractProducedQuery
scrollMode
- The scroll modeScrollableResults
,
ScrollMode
protected Type[] getPositionalParameterTypes()
getPositionalParameterTypes
in class AbstractProducedQuery
protected java.lang.Object[] getPositionalParameterValues()
getPositionalParameterValues
in class AbstractProducedQuery
public Type[] getReturnTypes()
BasicQueryContract
public java.lang.String[] getReturnAliases()
public Query setEntity(int position, java.lang.Object val)
public Query setEntity(java.lang.String name, java.lang.Object val)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.