|
|||||||||||
| 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.hql.QueryLoader
A delegate that implements the Loader part of QueryTranslator.
User: josh Date: Jan 3, 2004 Time: 8:29:58 PM
| Field Summary |
| Fields inherited from class org.hibernate.loader.BasicLoader |
NO_SUFFIX |
| Constructor Summary | |
QueryLoader(QueryTranslator queryTranslator,
SessionFactoryImplementor factory,
SelectClause selectClause)
Creates a new Loader implementation. |
|
| Method Summary | |
protected String |
applyLocks(String sql,
Map lockModes,
Dialect dialect)
Append FOR UPDATE OF clause, if necessary. |
String[] |
getAliases()
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading |
protected int[] |
getCollectionOwners()
Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. |
protected CollectionPersister[] |
getCollectionPersisters()
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value |
String[] |
getCollectionSuffixes()
|
protected boolean[] |
getEntityEagerPropertyFetches()
An array indicating whether the entities have eager property fetching enabled |
Loadable[] |
getEntityPersisters()
An array of persisters of entity classes contained in each row of results; implemented by all subclasses |
protected LockMode[] |
getLockModes(Map lockModes)
What lock mode does this load entities with? |
int[] |
getNamedParameterLocs(String name)
Returns the locations of all occurrences of the named parameter. |
protected EntityType[] |
getOwnerAssociationTypes()
An array of unique key property names by which the corresponding entities are referenced by other entities in the result set |
protected int[] |
getOwners()
An array of indexes of the entity that owns a one-to-one association to the entity at the given index (-1 if there is no "owner") |
protected String |
getQueryIdentifier()
Identifies the query for statistics reporting, if null, no statistics will be reported |
protected Object |
getResultColumnOrRow(Object[] row,
ResultSet rs,
SessionImplementor session)
Get the actual object that is returned in the user-visible result list. |
protected List |
getResultList(List results)
|
String[] |
getSqlAliasSuffixes()
|
protected String |
getSQLString()
The SQL query string to be called. |
String[] |
getSuffixes()
|
protected boolean |
isSubselectLoadingEnabled()
|
Iterator |
iterate(QueryParameters queryParameters,
EventSource session)
Return the query results as an iterator |
List |
list(SessionImplementor session,
QueryParameters queryParameters)
Delegats |
protected boolean |
needsFetchingScroll()
Does the result set to be scrolled contain collection fetches? |
ScrollableResults |
scroll(QueryParameters queryParameters,
SessionImplementor session)
|
protected boolean |
upgradeLocks()
Does this query return objects that might be already cached by the session, whose lock mode may need upgrading |
void |
validateScrollability()
|
| Methods inherited from class org.hibernate.loader.BasicLoader |
generateSuffixes, generateSuffixes, getCollectionAliases, getEntityAliases, postInstantiate |
| Methods inherited from class org.hibernate.loader.Loader |
autoDiscoverTypes, bindNamedParameters, bindPositionalParameters, checkScrollability, doList, getFactory, getResultSet, hasSubselectLoadableCollections, isSingleRowLoader, list, loadCollection, loadCollectionBatch, loadCollectionSubselect, loadEntity, loadEntity, loadEntityBatch, loadSequentialRowsForward, loadSequentialRowsReverse, loadSingleRow, prepareQueryStatement, preprocessSQL, scroll, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public QueryLoader(QueryTranslator queryTranslator,
SessionFactoryImplementor factory,
SelectClause selectClause)
queryTranslator - The query translator that is the delegator.factory - The factory from which this loader is being created.| Method Detail |
public final void validateScrollability()
throws HibernateException
HibernateExceptionprotected boolean needsFetchingScroll()
Loader
needsFetchingScroll in class Loaderpublic Loadable[] getEntityPersisters()
Loader
getEntityPersisters in class Loaderpublic String[] getAliases()
Loader
getAliases in class Loaderpublic String[] getSqlAliasSuffixes()
public String[] getSuffixes()
getSuffixes in class BasicLoaderpublic String[] getCollectionSuffixes()
getCollectionSuffixes in class BasicLoaderprotected String getQueryIdentifier()
Loader
getQueryIdentifier in class Loaderprotected String getSQLString()
getSQLString in class Loaderprotected CollectionPersister[] getCollectionPersisters()
getCollectionPersisters in class Loaderprotected int[] getCollectionOwners()
Loader
getCollectionOwners in class Loaderprotected boolean[] getEntityEagerPropertyFetches()
Loader
getEntityEagerPropertyFetches in class Loaderprotected int[] getOwners()
getOwners in class Loaderprotected EntityType[] getOwnerAssociationTypes()
Loader
getOwnerAssociationTypes in class Loaderprotected boolean isSubselectLoadingEnabled()
isSubselectLoadingEnabled in class Loaderprotected LockMode[] getLockModes(Map lockModes)
Loader
getLockModes in class LoaderlockModes - a collection of lock modes specified dynamically via the Query interface
protected String applyLocks(String sql,
Map lockModes,
Dialect dialect)
throws QueryException
Loader
applyLocks in class LoaderQueryExceptionprotected boolean upgradeLocks()
Loader
upgradeLocks in class Loader
protected Object getResultColumnOrRow(Object[] row,
ResultSet rs,
SessionImplementor session)
throws SQLException,
HibernateException
Loader
getResultColumnOrRow in class LoaderSQLException
HibernateException
protected List getResultList(List results)
throws QueryException
getResultList in class LoaderQueryException
public List list(SessionImplementor session,
QueryParameters queryParameters)
throws HibernateException
session - queryParameters -
HibernateException
public Iterator iterate(QueryParameters queryParameters,
EventSource session)
throws HibernateException
HibernateException
public ScrollableResults scroll(QueryParameters queryParameters,
SessionImplementor session)
throws HibernateException
HibernateException
public int[] getNamedParameterLocs(String name)
throws QueryException
getNamedParameterLocs in class LoaderQueryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||