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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.loader.BasicLoader
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Loader implementation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the SQL table aliases of entities whose
associations are subselect-loadable, returning
null if this loader does not support subselect
loading
| |||||||||||
An array of persisters of entity classes contained in each row of results;
implemented by all subclasses
| |||||||||||
Returns the locations of all occurrences of the named parameter.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Append FOR UPDATE OF clause, if necessary.
| |||||||||||
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.
| |||||||||||
Get the index of the entity that owns the collection, or -1
if there is no owner in the query results (ie.
| |||||||||||
An (optional) persister for a collection to be initialized; only collection loaders
return a non-null value
| |||||||||||
An array indicating whether the entities have eager property fetching
enabled.
| |||||||||||
What lock options does this load entities with?
| |||||||||||
An array of the owner types corresponding to the
getOwners()
returns. | |||||||||||
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")
| |||||||||||
Identifies the query for statistics reporting, if null,
no statistics will be reported
| |||||||||||
Get the actual object that is returned in the user-visible result list.
| |||||||||||
The SQL query string to be called.
| |||||||||||
Does the result set to be scrolled contain collection fetches?
| |||||||||||
Determine the actual ResultTransformer that will be used to
transform query results.
| |||||||||||
Does this query return objects that might be already cached
by the session, whose lock mode may need upgrading
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.loader.BasicLoader
| |||||||||||
From class
org.hibernate.loader.Loader
| |||||||||||
From class
java.lang.Object
|
Creates a new Loader implementation.
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. |
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading
An array of persisters of entity classes contained in each row of results; implemented by all subclasses
Returns the locations of all occurrences of the named parameter.
QueryException |
---|
HibernateException |
---|
HibernateException |
---|
HibernateException |
---|
Append FOR UPDATE OF clause, if necessary. This empty superclass implementation merely returns its first argument.
QueryException |
---|
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.
statement | The JDBC prepared statement |
---|---|
queryParameters | The encapsulation of the parameter values to be bound. |
startIndex | The position from which to start binding parameter values. |
session | The originating session. |
SQLException | Indicates problems performing the binding. |
---|
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.
An (optional) persister for a collection to be initialized; only collection loaders return a non-null value
An array indicating whether the entities have eager property fetching enabled.
What lock options does this load entities with?
lockOptions | a collection of lock modes specified dynamically via the Query interface |
---|
An array of the owner types corresponding to the getOwners()
returns. Indices indicating no owner would be null here.
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")
Identifies the query for statistics reporting, if null, no statistics will be reported
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.
SQLException | |
---|---|
HibernateException |
QueryException |
---|
The SQL query string to be called.
Does the result set to be scrolled contain collection fetches?
Determine the actual ResultTransformer that will be used to transform query results.
resultTransformer | the specified result transformer |
---|
Does this query return objects that might be already cached by the session, whose lock mode may need upgrading