java.lang.Object | |||
↳ | org.hibernate.loader.Loader | ||
↳ | org.hibernate.loader.BasicLoader | ||
↳ | org.hibernate.hql.classic.QueryTranslatorImpl |
An instance of QueryTranslator translates a Hibernate query string to SQL.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.hibernate.hql.QueryTranslator
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.loader.BasicLoader
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a query translator
| |||||||||||
Construct a query translator; this form used internally.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compile a "normal" query.
| |||||||||||
Compile a filter.
| |||||||||||
Does the translated query contain collection fetches?
| |||||||||||
Perform a bulk update/delete operation given the underlying query definition.
| |||||||||||
Overrides method from Loader
| |||||||||||
Returns the column names in the generated SQL.
| |||||||||||
Returns the filters enabled for this query translator.
| |||||||||||
Return information about any parameters encountered during
translation.
| |||||||||||
Identifies the query for statistics reporting, if null,
no statistics will be reported
| |||||||||||
Returns the set of query spaces (table names) that the query refers to.
| |||||||||||
Returns the HQL string processed by the translator.
| |||||||||||
Returns an array of HQL aliases
| |||||||||||
Types of the return values of an iterate() style query.
| |||||||||||
The SQL query string to be called; implemented by all subclasses
| |||||||||||
Return the query results as an iterator
| |||||||||||
Perform a list operation given the underlying query definition.
| |||||||||||
Perform a scroll operation given the underlying query definition.
| |||||||||||
Validate the scrollability of the translated query.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Append FOR UPDATE OF clause, if necessary.
| |||||||||||
Get the SQL table aliases of entities whose
associations are subselect-loadable, returning
null if this loader does not support subselect
loading
| |||||||||||
Get the index of the entity that owns the collection, or -1
if there is no owner in the query results (ie.
| |||||||||||
Persisters for the return values of a find() style query.
| |||||||||||
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").
| |||||||||||
Get the actual object that is returned in the user-visible result list.
| |||||||||||
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
| |||||||||||
From interface
org.hibernate.hql.FilterTranslator
| |||||||||||
From interface
org.hibernate.hql.QueryTranslator
|
Construct a query translator
queryIdentifier | A unique identifier for the query of which this translation is part; typically this is the original, user-supplied query string. |
---|---|
queryString | The "preprocessed" query string; at the very least
already processed by QuerySplitter . |
enabledFilters | Any enabled filters. |
factory | The session factory. |
Construct a query translator; this form used internally.
queryString | The query string to process. |
---|---|
enabledFilters | Any enabled filters. |
factory | The session factory. |
Compile a "normal" query. This method may be called multiple times. Subsequent invocations are no-ops.
replacements | Defined query substitutions. |
---|---|
scalar | Does this represent a shallow (scalar or entity-id) select? |
MappingException | |
---|---|
QueryException |
Compile a filter. This method may be called multiple times. Subsequent invocations are no-ops.
collectionRole | the role name of the collection used as the basis for the filter. |
---|---|
replacements | Defined query substitutions. |
scalar | Does this represent a shallow (scalar or entity-id) select? |
MappingException | |
---|---|
QueryException |
Does the translated query contain collection fetches?
Perform a bulk update/delete operation given the underlying query definition.
queryParameters | The query bind parameters. |
---|---|
session | The session owning this query. |
HibernateException |
---|
Returns the column names in the generated SQL.
Returns the filters enabled for this query translator.
Return information about any parameters encountered during translation.
Identifies the query for statistics reporting, if null, no statistics will be reported
Returns the set of query spaces (table names) that the query refers to.
Returns the HQL string processed by the translator.
Types of the return values of an iterate() style query.
The SQL query string to be called; implemented by all subclasses
Return the query results as an iterator
queryParameters | The query bind parameters. |
---|---|
session | The session owning this query. |
HibernateException |
---|
Perform a list operation given the underlying query definition.
session | The session owning this query. |
---|---|
queryParameters | The query bind parameters. |
HibernateException |
---|
Perform a scroll operation given the underlying query definition.
queryParameters | The query bind parameters. |
---|---|
session | The session owning this query. |
HibernateException |
---|
Validate the scrollability of the translated query.
HibernateException |
---|
Append FOR UPDATE OF clause, if necessary. This empty superclass implementation merely returns its first argument.
QueryException |
---|
Get the SQL table aliases of entities whose associations are subselect-loadable, returning null if this loader does not support subselect loading
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.
Persisters for the return values of a find() style query.
What lock options does this load entities with?
lockOptions | a collection of lock options 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"). The
indexes contained here are relative to the result of
getEntityPersisters()
.
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 |
---|
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