Save This Page
Home » Hibernate-3.3.2.GA » org.hibernate » loader » hql » [javadoc | source]
org.hibernate.loader.hql
public class: QueryLoader [javadoc | source]
java.lang.Object
   org.hibernate.loader.Loader
      org.hibernate.loader.BasicLoader
         org.hibernate.loader.hql.QueryLoader
A delegate that implements the Loader part of QueryTranslator.
Fields inherited from org.hibernate.loader.BasicLoader:
NO_SUFFIX
Constructor:
 public QueryLoader(QueryTranslatorImpl queryTranslator,
    SessionFactoryImplementor factory,
    SelectClause selectClause) 
    Creates a new Loader implementation.
    Parameters:
    queryTranslator - The query translator that is the delegator.
    factory - The factory from which this loader is being created.
    selectClause - The AST representing the select clause for loading.
Method from org.hibernate.loader.hql.QueryLoader Summary:
applyLocks,   bindParameterValues,   getAliases,   getCollectionOwners,   getCollectionPersisters,   getCollectionSuffixes,   getEntityEagerPropertyFetches,   getEntityPersisters,   getLockModes,   getNamedParameterLocs,   getOwnerAssociationTypes,   getOwners,   getQueryIdentifier,   getResultColumnOrRow,   getResultList,   getSQLString,   getSqlAliasSuffixes,   getSuffixes,   isSubselectLoadingEnabled,   iterate,   list,   needsFetchingScroll,   scroll,   upgradeLocks,   validateScrollability
Methods from org.hibernate.loader.BasicLoader:
generateSuffixes,   generateSuffixes,   getCollectionAliases,   getCollectionSuffixes,   getEntityAliases,   getSuffixes,   postInstantiate
Methods from org.hibernate.loader.Loader:
applyLocks,   autoDiscoverTypes,   bindNamedParameters,   bindParameterValues,   bindPositionalParameters,   checkScrollability,   doList,   getAliases,   getCollectionAliases,   getCollectionOwners,   getCollectionPersisters,   getEntityAliases,   getEntityEagerPropertyFetches,   getEntityPersisters,   getFactory,   getLockModes,   getNamedParameterLocs,   getOwnerAssociationTypes,   getOwners,   getQueryIdentifier,   getResultColumnOrRow,   getResultList,   getResultSet,   getSQLString,   hasSubselectLoadableCollections,   isSingleRowLoader,   isSubselectLoadingEnabled,   list,   loadCollection,   loadCollectionBatch,   loadCollectionSubselect,   loadEntity,   loadEntity,   loadEntityBatch,   loadSequentialRowsForward,   loadSequentialRowsReverse,   loadSingleRow,   needsFetchingScroll,   postInstantiate,   prepareQueryStatement,   preprocessSQL,   scroll,   toString,   upgradeLocks
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.loader.hql.QueryLoader Detail:
 protected String applyLocks(String sql,
    Map lockModes,
    Dialect dialect) throws QueryException 
 protected int bindParameterValues(PreparedStatement statement,
    QueryParameters queryParameters,
    int startIndex,
    SessionImplementor session) throws SQLException 
    We specifically override this method here, because in general we know much more about the parameters and their appropriate bind positions here then we do in our super because we track them explciitly here through the ParameterSpecification interface.
 public String[] getAliases() 
 protected int[] getCollectionOwners() 
 protected CollectionPersister[] getCollectionPersisters() 
    An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
 public String[] getCollectionSuffixes() 
 protected boolean[] getEntityEagerPropertyFetches() 
 public Loadable[] getEntityPersisters() 
 protected LockMode[] getLockModes(Map lockModes) 
 public int[] getNamedParameterLocs(String name) throws QueryException 
    Returns the locations of all occurrences of the named parameter.
 protected EntityType[] getOwnerAssociationTypes() 
 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() 
 protected Object getResultColumnOrRow(Object[] row,
    ResultTransformer transformer,
    ResultSet rs,
    SessionImplementor session) throws SQLException, HibernateException 
 protected List getResultList(List results,
    ResultTransformer resultTransformer) throws QueryException 
 protected String getSQLString() 
    The SQL query string to be called.
 public String[] getSqlAliasSuffixes() 
 public String[] getSuffixes() 
 protected boolean isSubselectLoadingEnabled() 
 public Iterator iterate(QueryParameters queryParameters,
    EventSource session) throws HibernateException 
 public List list(SessionImplementor session,
    QueryParameters queryParameters) throws HibernateException 
 protected boolean needsFetchingScroll() 
 public ScrollableResults scroll(QueryParameters queryParameters,
    SessionImplementor session) throws HibernateException 
 protected boolean upgradeLocks() 
 public final  void validateScrollability() throws HibernateException