java.lang.Object | ||
↳ | org.hibernate.impl.AbstractQueryImpl | |
↳ | org.hibernate.impl.SQLQueryImpl |
Implementation of the SQLQuery
contract.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.impl.AbstractQueryImpl
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Declare a "root" entity
| |||||||||||
Declare a "root" entity, specifying a lock mode
| |||||||||||
Declare a "root" entity, specifying a lock mode
| |||||||||||
Declare a "root" entity, without specifying an alias.
| |||||||||||
Declare a "root" entity
| |||||||||||
Declare a "root" entity, without specifying an alias.
| |||||||||||
Declare a join fetch result.
| |||||||||||
Declare a join fetch result.
| |||||||||||
Declare a join fetch result, specifying a lock mode
| |||||||||||
Declare a join fetch result.
| |||||||||||
Add a new root return mapping, returning a
SQLQuery.RootReturn to allow further definition | |||||||||||
Add a new root return mapping, returning a
SQLQuery.RootReturn to allow further definition | |||||||||||
Declare a scalar query result.
| |||||||||||
Declare a scalar query result.
| |||||||||||
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
| |||||||||||
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
| |||||||||||
Adds a query space (table name) for (a) auto-flush checking and (b) query result cache invalidation checking
| |||||||||||
Execute the update or delete statement.
| |||||||||||
Return the HQL select clause aliases (if any)
| |||||||||||
Return the Hibernate types of the query result set.
| |||||||||||
Return the query results as an Iterator.
| |||||||||||
Return the query results as a List.
| |||||||||||
Return the query results as ScrollableResults.
| |||||||||||
Return the query results as ScrollableResults.
| |||||||||||
Set the lockmode for the objects idententified by the
given alias that appears in the FROM clause.
| |||||||||||
Set the lock options for the objects idententified by the
given alias that appears in the FROM clause.
| |||||||||||
Use a predefined named result-set mapping.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Perform parameter validation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.hibernate.impl.AbstractQueryImpl
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.Query
| |||||||||||
From interface
org.hibernate.SQLQuery
|
Declare a "root" entity
alias | The SQL table alias |
---|---|
entityClass | The java type of the entity to add as a root |
this
, for method chaining
Declare a "root" entity, specifying a lock mode
alias | The SQL table alias |
---|---|
entityClass | The entity name |
lockMode | The lock mode for this return. |
this
, for method chaining
Declare a "root" entity, specifying a lock mode
alias | The SQL table alias |
---|---|
entityName | The entity name |
lockMode | The lock mode for this return. |
this
, for method chaining
Declare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name
UseaddRoot(String, Class)
if you need further control of the mappingentityName | The entity name that is the root return of the query. |
---|
this
, for method chaining
Declare a "root" entity
alias | The SQL table alias |
---|---|
entityName | The entity name |
this
, for method chaining
Declare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name
entityType | The java type of the entity to add as a root |
---|
this
, for method chaining
Declare a join fetch result.
tableAlias | The SQL table alias for the data to be mapped to this fetch |
---|---|
ownerTableAlias | Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch |
joinPropertyName | The name of the property being join fetched. |
Declare a join fetch result.
tableAlias | The SQL table alias for the data to be mapped to this fetch |
---|---|
ownerTableAlias | Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch |
joinPropertyName | The name of the property being join fetched. |
this
, for method chainingDeclare a join fetch result, specifying a lock mode
alias | The SQL table alias for the data to be mapped to this fetch |
---|---|
path | The association path ([owner-alias].[property-name]). |
lockMode | The lock mode for this return. |
this
, for method chaining
Declare a join fetch result.
alias | The SQL table alias for the data to be mapped to this fetch |
---|---|
path | The association path ([owner-alias].[property-name]). |
this
, for method chaining
Add a new root return mapping, returning a SQLQuery.RootReturn
to allow further definition
tableAlias | The SQL table alias to map to this entity |
---|---|
entityType | The java type of the entity. |
Add a new root return mapping, returning a SQLQuery.RootReturn
to allow further definition
tableAlias | The SQL table alias to map to this entity |
---|---|
entityName | The name of the entity. |
Declare a scalar query result.
Functions like<return-scalar/>
in hbm.xml
or javax.persistence.ColumnResultcolumnAlias | The column alias in the result-set to be processed as a scalar result |
---|---|
type | The Hibernate type as which to treat the value. |
this
, for method chaining
Declare a scalar query result. Hibernate will attempt to automatically detect the underlying type.
Functions like<return-scalar/>
in hbm.xml
or javax.persistence.ColumnResultcolumnAlias | The column alias in the result-set to be processed as a scalar result |
---|
this
, for method chaining
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking. Same as
addSynchronizedQuerySpace(String)
for all tables associated with the given entity.
entityClass | The class of the entity upon whose defined query spaces we should additionally synchronize. |
---|
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking. Same as
addSynchronizedQuerySpace(String)
for all tables associated with the given entity.
entityName | The name of the entity upon whose defined query spaces we should additionally synchronize. |
---|
Adds a query space (table name) for (a) auto-flush checking and (b) query result cache invalidation checking
querySpace | The query space to be auto-flushed for this query. |
---|
Execute the update or delete statement.
The semantics are compliant with the ejb3 Query.executeUpdate() method.HibernateException |
---|
Return the HQL select clause aliases (if any)
HibernateException |
---|
Return the Hibernate types of the query result set.
HibernateException |
---|
Return the query results as an Iterator. If the query
contains multiple results pre row, the results are returned in
an instance of Object[].
Entities returned as results are initialized on demand. The first
SQL query returns identifiers only.
HibernateException |
---|
Return the query results as a List. If the query contains multiple results pre row, the results are returned in an instance of Object[].
HibernateException |
---|
Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
HibernateException |
---|
Return the query results as ScrollableResults. The
scrollability of the returned results depends upon JDBC driver
support for scrollable ResultSets.
HibernateException |
---|
Set the lockmode for the objects idententified by the given alias that appears in the FROM clause.
alias | a query alias, or this for a collection filter |
---|
Set the lock options for the objects idententified by the given alias that appears in the FROM clause.
Use a predefined named result-set mapping. This might be defined by a <result-set/>
element in a
Hibernate hbm.xml file or through a javax.persistence.SqlResultSetMapping annotation.
name | The name of the mapping to use. |
---|
Perform parameter validation. Used prior to executing the encapsulated query.