public class CriteriaLoader extends OuterJoinLoader
A <tt>Loader</tt> for <tt>Criteria</tt> queries. Note that criteria queries are more like multi-object <tt>load()</tt>s than like HQL queries.
Loader.SqlStatementWrapperaliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixesNO_SUFFIXDEBUG_ENABLED, LOG, SELECT, SELECT_DISTINCT| Constructor and Description |
|---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
org.hibernate.internal.CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyLocks(String sql,
QueryParameters parameters,
Dialect dialect,
List<AfterLoadAction> afterLoadActions)
Append <tt>FOR UPDATE OF</tt> clause, if necessary.
|
protected boolean |
areResultSetRowsTransformedImmediately()
Are rows transformed immediately after being read from the ResultSet?
|
protected LockMode |
determineFollowOnLockMode(LockOptions lockOptions) |
protected LockMode[] |
getLockModes(LockOptions lockOptions)
What lock options does this load entities with?
|
protected String |
getQueryIdentifier()
Identifies the query for statistics reporting, if null,
no statistics will be reported
|
Set |
getQuerySpaces() |
protected Object |
getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SharedSessionContractImplementor session)
Get the actual object that is returned in the user-visible result list.
|
protected List |
getResultList(List results,
ResultTransformer resultTransformer) |
protected Object[] |
getResultRow(Object[] row,
ResultSet rs,
SharedSessionContractImplementor session) |
protected String[] |
getResultRowAliases()
Returns the aliases that corresponding to a result row.
|
protected boolean[] |
includeInResultRow() |
protected boolean |
isSubselectLoadingEnabled() |
List |
list(SharedSessionContractImplementor session) |
protected ResultTransformer |
resolveResultTransformer(ResultTransformer resultTransformer)
Determine the actual ResultTransformer that will be used to
transform query results.
|
ScrollableResultsImplementor |
scroll(SharedSessionContractImplementor session,
ScrollMode scrollMode) |
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalkergenerateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiateapplyPostLoadLocks, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, checkScrollability, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getLimitHandler, getNamedParameterLocs, getResultSet, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, scroll, shouldUseFollowOnLocking, toString, upgradeLockspublic CriteriaLoader(OuterJoinLoadable persister, SessionFactoryImplementor factory, org.hibernate.internal.CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers) throws HibernateException
HibernateExceptionpublic ScrollableResultsImplementor scroll(SharedSessionContractImplementor session, ScrollMode scrollMode) throws HibernateException
HibernateExceptionpublic List list(SharedSessionContractImplementor session) throws HibernateException
HibernateExceptionprotected String[] getResultRowAliases()
LoaderReturns the aliases that corresponding to a result row.
getResultRowAliases in class Loaderprotected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer)
LoaderDetermine the actual ResultTransformer that will be used to transform query results.
resolveResultTransformer in class LoaderresultTransformer - the specified result transformerprotected boolean areResultSetRowsTransformedImmediately()
LoaderAre rows transformed immediately after being read from the ResultSet?
areResultSetRowsTransformedImmediately in class Loaderprotected boolean[] includeInResultRow()
includeInResultRow in class Loaderprotected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException
LoaderGet the actual object that is returned in the user-visible result list. This empty implementation merely returns its first argument. This is overridden by some subclasses.
getResultColumnOrRow in class LoaderSQLExceptionHibernateExceptionprotected Object[] getResultRow(Object[] row, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException
getResultRow in class LoaderSQLExceptionHibernateExceptionpublic Set getQuerySpaces()
protected String applyLocks(String sql, QueryParameters parameters, Dialect dialect, List<AfterLoadAction> afterLoadActions) throws QueryException
LoaderAppend <tt>FOR UPDATE OF</tt> clause, if necessary. This empty superclass implementation merely returns its first argument.
applyLocks in class LoaderQueryExceptionprotected LockMode determineFollowOnLockMode(LockOptions lockOptions)
determineFollowOnLockMode in class Loaderprotected LockMode[] getLockModes(LockOptions lockOptions)
LoaderWhat lock options does this load entities with?
getLockModes in class OuterJoinLoaderlockOptions - a collection of lock options specified dynamically via the Query interfaceprotected boolean isSubselectLoadingEnabled()
isSubselectLoadingEnabled in class Loaderprotected List getResultList(List results, ResultTransformer resultTransformer)
getResultList in class Loaderprotected String getQueryIdentifier()
LoaderIdentifies the query for statistics reporting, if null, no statistics will be reported
getQueryIdentifier in class LoaderCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.