public class CriteriaLoader extends OuterJoinLoader
Loader.SqlStatementWrapper
aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes
NO_SUFFIX
DEBUG_ENABLED, LOG, SELECT, SELECT_DISTINCT
Constructor and Description |
---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
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 FOR UPDATE OF 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, initFromWalker
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate
applyPostLoadLocks, 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, upgradeLocks
public CriteriaLoader(OuterJoinLoadable persister, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers) throws HibernateException
HibernateException
public ScrollableResultsImplementor scroll(SharedSessionContractImplementor session, ScrollMode scrollMode) throws HibernateException
HibernateException
public List list(SharedSessionContractImplementor session) throws HibernateException
HibernateException
protected String[] getResultRowAliases()
Loader
getResultRowAliases
in class Loader
protected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer)
Loader
resolveResultTransformer
in class Loader
resultTransformer
- the specified result transformerprotected boolean areResultSetRowsTransformedImmediately()
Loader
areResultSetRowsTransformedImmediately
in class Loader
protected boolean[] includeInResultRow()
includeInResultRow
in class Loader
protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException
Loader
getResultColumnOrRow
in class Loader
SQLException
HibernateException
protected Object[] getResultRow(Object[] row, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException
getResultRow
in class Loader
SQLException
HibernateException
public Set getQuerySpaces()
protected String applyLocks(String sql, QueryParameters parameters, Dialect dialect, List<AfterLoadAction> afterLoadActions) throws QueryException
Loader
applyLocks
in class Loader
QueryException
protected LockMode determineFollowOnLockMode(LockOptions lockOptions)
determineFollowOnLockMode
in class Loader
protected LockMode[] getLockModes(LockOptions lockOptions)
Loader
getLockModes
in class OuterJoinLoader
lockOptions
- a collection of lock options specified dynamically via the Query interfaceprotected boolean isSubselectLoadingEnabled()
isSubselectLoadingEnabled
in class Loader
protected List getResultList(List results, ResultTransformer resultTransformer)
getResultList
in class Loader
protected String getQueryIdentifier()
Loader
getQueryIdentifier
in class Loader
Copyright © 2019 JBoss by Red Hat. All rights reserved.