|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.loader.Loader
org.hibernate.loader.BasicLoader
org.hibernate.loader.OuterJoinLoader
org.hibernate.loader.criteria.CriteriaLoader
public class CriteriaLoader
A Loader for Criteria queries. Note that criteria queries are more like multi-object load()s than like HQL queries.
| Field Summary |
|---|
| Fields inherited from class org.hibernate.loader.OuterJoinLoader |
|---|
aliases, collectionOwners, collectionPersisters, collectionSuffixes, lockModeArray, ownerAssociationTypes, owners, persisters, sql, suffixes |
| Fields inherited from class org.hibernate.loader.BasicLoader |
|---|
NO_SUFFIX |
| Fields inherited from class org.hibernate.loader.Loader |
|---|
LOG |
| Constructor Summary | |
|---|---|
CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.hibernate.loader.OuterJoinLoader |
|---|
getAliases, getCollectionOwners, getCollectionPersisters, getCollectionSuffixes, getDialect, getEntityPersisters, getLoadQueryInfluencers, getLockOptions, getOwnerAssociationTypes, getOwners, getSQLString, getSuffixes, initFromWalker |
| Methods inherited from class org.hibernate.loader.BasicLoader |
|---|
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CriteriaLoader(OuterJoinLoadable persister,
SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
LoadQueryInfluencers loadQueryInfluencers)
throws HibernateException
HibernateException| Method Detail |
|---|
public ScrollableResults scroll(SessionImplementor session,
ScrollMode scrollMode)
throws HibernateException
HibernateException
public List list(SessionImplementor session)
throws HibernateException
HibernateExceptionprotected String[] getResultRowAliases()
Loader
getResultRowAliases in class Loaderprotected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer)
Loader
resolveResultTransformer in class LoaderresultTransformer - the specified result transformer
protected boolean areResultSetRowsTransformedImmediately()
Loader
areResultSetRowsTransformedImmediately in class Loaderprotected boolean[] includeInResultRow()
includeInResultRow in class Loader
protected Object getResultColumnOrRow(Object[] row,
ResultTransformer transformer,
ResultSet rs,
SessionImplementor session)
throws SQLException,
HibernateException
Loader
getResultColumnOrRow in class LoaderSQLException
HibernateException
protected Object[] getResultRow(Object[] row,
ResultSet rs,
SessionImplementor session)
throws SQLException,
HibernateException
getResultRow in class LoaderSQLException
HibernateExceptionpublic Set getQuerySpaces()
protected String applyLocks(String sqlSelectString,
LockOptions lockOptions,
Dialect dialect)
throws QueryException
Loader
applyLocks in class LoaderQueryExceptionprotected LockMode[] getLockModes(LockOptions lockOptions)
Loader
getLockModes in class OuterJoinLoaderlockOptions - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||