public class CriteriaLoader extends OuterJoinLoader
aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixesNO_SUFFIX| Constructor and Description |
|---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyLocks(String sqlSelectString,
LockOptions lockOptions,
Dialect dialect)
Append FOR UPDATE OF clause, if necessary.
|
protected boolean |
areResultSetRowsTransformedImmediately()
Are rows transformed immediately after being read from the ResultSet?
|
protected LockMode[] |
getLockModes(LockOptions lockOptions)
What lock options does this load entities with?
|
Set |
getQuerySpaces() |
protected Object |
getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor 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,
SessionImplementor session) |
protected String[] |
getResultRowAliases()
Returns the aliases that corresponding to a result row.
|
protected boolean[] |
includeInResultRow() |
protected boolean |
isSubselectLoadingEnabled() |
List |
list(SessionImplementor session) |
protected ResultTransformer |
resolveResultTransformer(ResultTransformer resultTransformer)
Determine the actual ResultTransformer that will be used to
transform query results.
|
ScrollableResults |
scroll(SessionImplementor 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, extractKeysFromResultSet, getCompositeKeyManyToOneTargetIndices, getEntityEagerPropertyFetches, getFactory, getNamedParameterLocs, getQueryIdentifier, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, needsFetchingScroll, prepareQueryStatement, preprocessSQL, scroll, toString, upgradeLockspublic CriteriaLoader(OuterJoinLoadable persister, SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, LoadQueryInfluencers loadQueryInfluencers) throws HibernateException
HibernateExceptionpublic ScrollableResults scroll(SessionImplementor session, ScrollMode scrollMode) throws HibernateException
HibernateExceptionpublic List list(SessionImplementor 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, SessionImplementor session) throws SQLException, HibernateException
LoadergetResultColumnOrRow in class LoaderSQLExceptionHibernateExceptionprotected Object[] getResultRow(Object[] row, ResultSet rs, SessionImplementor session) throws SQLException, HibernateException
getResultRow in class LoaderSQLExceptionHibernateExceptionpublic Set getQuerySpaces()
protected String applyLocks(String sqlSelectString, LockOptions lockOptions, Dialect dialect) throws QueryException
LoaderapplyLocks in class LoaderQueryExceptionprotected 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 LoaderCopyright © 2012 JBoss by Red Hat. All Rights Reserved.