public class CriteriaLoader extends OuterJoinLoader
Loader.SqlStatementWrapperaliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixesNO_SUFFIXLOG, 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 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, initFromWalkergenerateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiateapplyPostLoadLocks, autoDiscoverTypes, bindNamedParameters, bindParameterValues, bindPositionalParameters, bindPreparedStatement, checkScrollability, createCacheableResultTransformer, createSubselects, doList, doQueryAndInitializeNonLazyCollections, doQueryAndInitializeNonLazyCollections, endCollectionLoad, executeQueryStatement, executeQueryStatement, extractKeysFromResultSet, generateQueryKey, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getEntityPersister, getFactory, getLimitHandler, getNamedParameterLocs, getOptionalObjectKey, getResultFromQueryCache, getResultSet, getResultSet, getRowsFromResultSet, handleEmptyCollections, hasSubselectLoadableCollections, instanceAlreadyLoaded, instanceNotYetLoaded, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessResultSet, preprocessSQL, processDistinctKeyword, processResultSet, putResultInQueryCache, registerNonExists, 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()
LoadergetResultRowAliases in class Loaderprotected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer)
LoaderresolveResultTransformer in class LoaderresultTransformer - the specified result transformerprotected boolean areResultSetRowsTransformedImmediately()
LoaderareResultSetRowsTransformedImmediately in class Loaderprotected boolean[] includeInResultRow()
includeInResultRow in class Loaderprotected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SharedSessionContractImplementor session) throws SQLException, HibernateException
LoadergetResultColumnOrRow 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
LoaderapplyLocks in class LoaderQueryExceptionprotected LockMode determineFollowOnLockMode(LockOptions lockOptions)
determineFollowOnLockMode in class Loaderprotected LockMode[] getLockModes(LockOptions lockOptions)
LoadergetLockModes 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()
LoadergetQueryIdentifier in class LoaderCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.