| Modifier and Type | Field and Description |
|---|---|
| private AggregatedSelectExpression | |
| private int[] | |
| private QueryableCollection[] | |
| private String[] | |
| private LockMode[] | |
| private String[] | |
| private boolean[] | |
| private Queryable[] | |
| private boolean | |
| private boolean[] | |
| private EntityType[] | |
| private int[] | |
| private String[] | |
| private Type[] | |
| private QueryTranslatorImpl | queryTranslator
The query translator that is delegating to this object. |
| private String[][] | |
| private int | |
| private final Map | |
| private String[] | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public | QueryLoader(final QueryTranslatorImpl
The query translator that is the delegator. queryTranslator, final SessionFactoryImplementor The factory from which this loader is being created. factory, final SelectClause The AST representing the select clause for loading. selectClause)Creates a new Loader implementation. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | applyLocks(String sql, LockOptions lockOptions, Dialect dialect)
Overrides org. |
| protected void | applyPostLoadLocks(Object[] row, LockMode[] lockModesArray, SessionImplementor session)
|
| private int | bindFilterParameterValues(PreparedStatement st, QueryParameters queryParameters, int position, SessionImplementor session)
|
| protected int | Returns: The number of JDBC bind positions actually bound during this method execution.The JDBC prepared statement statement, final QueryParameters The encapsulation of the parameter values to be bound. queryParameters, final int The position from which to start binding parameter values. startIndex, final SessionImplementor The originating session. 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.
|
| private HolderInstantiator | |
| private void | |
| public AggregatedSelectExpression | |
| public String[] | getAliases()
Overrides org. |
| 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()
Overrides org. |
| public String[] | |
| protected boolean[] | getEntityEagerPropertyFetches()
Overrides org. |
| public Loadable[] | getEntityPersisters()
Implements abstract org. |
| protected LockMode[] | getLockModes(LockOptions
a collection of lock modes specified dynamically via the Query interface lockOptions)Implements abstract org. |
| public int[] | getNamedParameterLocs(String name)
Overrides org. |
| protected EntityType[] | getOwnerAssociationTypes()
Overrides org. getOwners()
returns.
|
| protected int[] | getOwners()
Overrides org. |
| protected String | getQueryIdentifier()
Identifies the query for statistics reporting, if null,
no statistics will be reported
|
| 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<E> results, ResultTransformer resultTransformer)
Overrides org. |
| public String[] | |
| protected String | getSQLString()
Implements abstract org. |
| public String[] | |
| private boolean | |
| private void | |
| protected boolean | |
| public Iterator | |
| public List | |
| protected boolean | needsFetchingScroll()
Does the result set to be scrolled contain collection fetches?
|
| protected ResultTransformer | resolveResultTransformer(ResultTransformer
the specified result transformer resultTransformer)Overrides org. |
| public ScrollableResults | |
| private Object[] | |
| protected boolean | upgradeLocks()
Overrides org. |
| public final void |
| aggregatedSelectExpression | back to summary |
|---|---|
| private AggregatedSelectExpression aggregatedSelectExpression | |
| collectionOwners | back to summary |
|---|---|
| private int[] collectionOwners | |
| collectionPersisters | back to summary |
|---|---|
| private QueryableCollection[] collectionPersisters | |
| collectionSuffixes | back to summary |
|---|---|
| private String[] collectionSuffixes | |
| defaultLockModes | back to summary |
|---|---|
| private LockMode[] defaultLockModes | |
| entityAliases | back to summary |
|---|---|
| private String[] entityAliases | |
| entityEagerPropertyFetches | back to summary |
|---|---|
| private boolean[] entityEagerPropertyFetches | |
| entityPersisters | back to summary |
|---|---|
| private Queryable[] entityPersisters | |
| hasScalars | back to summary |
|---|---|
| private boolean hasScalars | |
| includeInSelect | back to summary |
|---|---|
| private boolean[] includeInSelect | |
| ownerAssociationTypes | back to summary |
|---|---|
| private EntityType[] ownerAssociationTypes | |
| owners | back to summary |
|---|---|
| private int[] owners | |
| queryReturnAliases | back to summary |
|---|---|
| private String[] queryReturnAliases | |
| queryReturnTypes | back to summary |
|---|---|
| private Type[] queryReturnTypes | |
| queryTranslator | back to summary |
|---|---|
| private QueryTranslatorImpl queryTranslator The query translator that is delegating to this object. | |
| scalarColumnNames | back to summary |
|---|---|
| private String[][] scalarColumnNames | |
| selectLength | back to summary |
|---|---|
| private int selectLength | |
| sqlAliasByEntityAlias | back to summary |
|---|---|
| private final Map<K, V> sqlAliasByEntityAlias | |
| sqlAliases | back to summary |
|---|---|
| private String[] sqlAliases | |
| sqlAliasSuffixes | back to summary |
|---|---|
| private String[] sqlAliasSuffixes | |
| QueryLoader | back to summary |
|---|---|
| public QueryLoader(final QueryTranslatorImpl queryTranslator, final SessionFactoryImplementor factory, final SelectClause selectClause) Creates a new Loader implementation.
| |
| applyLocks | back to summary |
|---|---|
| protected String applyLocks(String sql, LockOptions lockOptions, Dialect dialect) throws QueryException Overrides org. Doc from org. Append FOR UPDATE OF clause, if necessary. This empty superclass implementation merely returns its first argument. | |
| applyPostLoadLocks | back to summary |
|---|---|
| protected void applyPostLoadLocks(Object[] row, LockMode[] lockModesArray, SessionImplementor session) | |
| bindFilterParameterValues | back to summary |
|---|---|
| private int bindFilterParameterValues(PreparedStatement st, QueryParameters queryParameters, int position, SessionImplementor session) throws SQLException | |
| bindParameterValues | back to summary |
|---|---|
| protected int bindParameterValues(final PreparedStatement statement, final QueryParameters queryParameters, final int startIndex, final SessionImplementor session) throws SQLException Overrides org. 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.
| |
| buildHolderInstantiator | back to summary |
|---|---|
| private HolderInstantiator buildHolderInstantiator(ResultTransformer queryLocalResultTransformer) | |
| checkQuery | back to summary |
|---|---|
| private void checkQuery(QueryParameters queryParameters) | |
| getAggregatedSelectExpression | back to summary |
|---|---|
| public AggregatedSelectExpression getAggregatedSelectExpression() | |
| getAliases | back to summary |
|---|---|
| public String[] getAliases() Overrides org. Doc from org. Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading | |
| getCollectionOwners | back to summary |
|---|---|
| protected int[] getCollectionOwners() Overrides org. Doc from org. Get the index of the entity that owns the collection, or -1 if there is no owner in the query results (ie. in the case of a collection initializer) or no collection. | |
| getCollectionPersisters | back to summary |
|---|---|
| protected CollectionPersister[] getCollectionPersisters() Overrides org. An (optional) persister for a collection to be initialized; only collection loaders return a non-null value | |
| getCollectionSuffixes | back to summary |
|---|---|
| public String[] getCollectionSuffixes() Implements abstract org. | |
| getEntityEagerPropertyFetches | back to summary |
|---|---|
| protected boolean[] getEntityEagerPropertyFetches() Overrides org. Doc from org. An array indicating whether the entities have eager property fetching enabled.
| |
| getEntityPersisters | back to summary |
|---|---|
| public Loadable[] getEntityPersisters() Implements abstract org. Doc from org. An array of persisters of entity classes contained in each row of results; implemented by all subclasses
| |
| getLockModes | back to summary |
|---|---|
| protected LockMode[] getLockModes(LockOptions lockOptions) Implements abstract org. Doc from org. What lock options does this load entities with?
| |
| getNamedParameterLocs | back to summary |
|---|---|
| public int[] getNamedParameterLocs(String name) throws QueryException Overrides org. Returns the locations of all occurrences of the named parameter. | |
| getOwnerAssociationTypes | back to summary |
|---|---|
| protected EntityType[] getOwnerAssociationTypes() Overrides org. Doc from org. An array of the owner types corresponding to the
| |
| getOwners | back to summary |
|---|---|
| protected int[] getOwners() Overrides org. 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 | back to summary |
|---|---|
| protected String getQueryIdentifier() Overrides org. Doc from org. Identifies the query for statistics reporting, if null, no statistics will be reported | |
| getResultColumnOrRow | back to summary |
|---|---|
| protected Object getResultColumnOrRow(Object[] row, ResultTransformer transformer, ResultSet rs, SessionImplementor session) throws SQLException, HibernateException Overrides org. Doc from org. Get the actual object that is returned in the user-visible result list. This empty implementation merely returns its first argument. This is overridden by some subclasses. | |
| getResultList | back to summary |
|---|---|
| protected List Overrides org. | |
| getSqlAliasSuffixes | back to summary |
|---|---|
| public String[] getSqlAliasSuffixes() | |
| getSQLString | back to summary |
|---|---|
| protected String getSQLString() Implements abstract org. The SQL query string to be called.
| |
| getSuffixes | back to summary |
|---|---|
| public String[] getSuffixes() Implements abstract org. | |
| hasSelectNew | back to summary |
|---|---|
| private boolean hasSelectNew() | |
| initialize | back to summary |
|---|---|
| private void initialize(SelectClause selectClause) | |
| isSubselectLoadingEnabled | back to summary |
|---|---|
| protected boolean isSubselectLoadingEnabled() Overrides org. | |
| iterate | back to summary |
|---|---|
| public Iterator | |
| list | back to summary |
|---|---|
| public List | |
| needsFetchingScroll | back to summary |
|---|---|
| protected boolean needsFetchingScroll() Overrides org. Doc from org. Does the result set to be scrolled contain collection fetches?
| |
| resolveResultTransformer | back to summary |
|---|---|
| protected ResultTransformer resolveResultTransformer(ResultTransformer resultTransformer) Overrides org. Doc from org. Determine the actual ResultTransformer that will be used to transform query results.
| |
| scroll | back to summary |
|---|---|
| public ScrollableResults scroll(final QueryParameters queryParameters, final SessionImplementor session) throws HibernateException | |
| toResultRow | back to summary |
|---|---|
| private Object[] toResultRow(Object[] row) | |
| upgradeLocks | back to summary |
|---|---|
| protected boolean upgradeLocks() Overrides org. Doc from org. Does this query return objects that might be already cached by the session, whose lock mode may need upgrading | |
| validateScrollability | back to summary |
|---|---|
| public final void validateScrollability() throws HibernateException | |