| org.hibernate.loader.BasicLoader org.hibernate.loader.hql.QueryLoader
QueryLoader | public class QueryLoader extends BasicLoader (Code) | | A delegate that implements the Loader part of QueryTranslator.
author: josh |
Method Summary | |
protected String | applyLocks(String sql, Map lockModes, Dialect dialect) | protected int | bindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SessionImplementor session) 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.
Parameters: queryParameters - The encapsulation of the parameter values to be bound. Parameters: startIndex - The position from which to start binding parameter values. Parameters: session - The originating session. | public String[] | getAliases() | protected int[] | getCollectionOwners() | protected CollectionPersister[] | getCollectionPersisters() | public String[] | getCollectionSuffixes() | protected boolean[] | getEntityEagerPropertyFetches() | public Loadable[] | getEntityPersisters() | protected LockMode[] | getLockModes(Map lockModes) | public int[] | getNamedParameterLocs(String name) Returns the locations of all occurrences of the named parameter. | protected EntityType[] | getOwnerAssociationTypes() | protected int[] | getOwners() | protected String | getQueryIdentifier() | protected Object | getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session) | protected List | getResultList(List results, ResultTransformer resultTransformer) | 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) | public List | list(SessionImplementor session, QueryParameters queryParameters) | protected boolean | needsFetchingScroll() | public ScrollableResults | scroll(QueryParameters queryParameters, SessionImplementor session) | protected boolean | upgradeLocks() | final public void | validateScrollability() |
QueryLoader | public QueryLoader(QueryTranslatorImpl queryTranslator, SessionFactoryImplementor factory, SelectClause selectClause)(Code) | | Creates a new Loader implementation.
Parameters: queryTranslator - The query translator that is the delegator. Parameters: factory - The factory from which this loader is being created. Parameters: selectClause - The AST representing the select clause for loading. |
bindParameterValues | protected int bindParameterValues(PreparedStatement statement, QueryParameters queryParameters, int startIndex, SessionImplementor session) throws SQLException(Code) | | 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.
Parameters: queryParameters - The encapsulation of the parameter values to be bound. Parameters: startIndex - The position from which to start binding parameter values. Parameters: session - The originating session. The number of JDBC bind positions actually bound during this method execution. throws: SQLException - Indicates problems performing the binding. |
getCollectionOwners | protected int[] getCollectionOwners()(Code) | | |
getCollectionPersisters | protected CollectionPersister[] getCollectionPersisters()(Code) | | An (optional) persister for a collection to be initialized; only collection loaders
return a non-null value
|
getCollectionSuffixes | public String[] getCollectionSuffixes()(Code) | | |
getEntityEagerPropertyFetches | protected boolean[] getEntityEagerPropertyFetches()(Code) | | |
getLockModes | protected LockMode[] getLockModes(Map lockModes)(Code) | | Parameters: lockModes - a collection of lock modes specified dynamically via the Query interface |
getNamedParameterLocs | public int[] getNamedParameterLocs(String name) throws QueryException(Code) | | Returns the locations of all occurrences of the named parameter.
|
getOwners | protected int[] getOwners()(Code) | | 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")
|
getQueryIdentifier | protected String getQueryIdentifier()(Code) | | |
getSQLString | protected String getSQLString()(Code) | | The SQL query string to be called.
|
getSqlAliasSuffixes | public String[] getSqlAliasSuffixes()(Code) | | |
isSubselectLoadingEnabled | protected boolean isSubselectLoadingEnabled()(Code) | | |
needsFetchingScroll | protected boolean needsFetchingScroll()(Code) | | |
upgradeLocks | protected boolean upgradeLocks()(Code) | | |
Fields inherited from org.hibernate.loader.BasicLoader | final protected static String[] NO_SUFFIX(Code)(Java Doc)
|
|
|