java.lang.Object | |
↳ | org.hibernate.criterion.SQLProjection |
A SQL fragment. The string {alias} will be replaced by the alias of the root entity.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the criteria-level aliases for this projection (ie.
| |||||||||||
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (
toSqlString(Criteria, int, CriteriaQuery) . | |||||||||||
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (
toSqlString(Criteria, int, CriteriaQuery) for a particular criteria-level alias. | |||||||||||
Get the return types for a particular user-visible alias.
| |||||||||||
Types returned by the rendered SQL
fragment . | |||||||||||
Is this projection fragment (SELECT clause) also part of the GROUP BY
| |||||||||||
Render the SQL fragment to be used in the GROUP BY clause
| |||||||||||
Render the SQL fragment to be used in the SELECT clause.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.criterion.Projection
|
Get the criteria-level aliases for this projection (ie. the ones that will be passed to the
ResultTransformer
)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (toSqlString(Criteria, int, CriteriaQuery)
. Hibernate always uses column aliases to extract data from the
JDBC java.sql.ResultSet, so it is important that these be implemented correctly in order for
Hibernate to be able to extract these val;ues correctly.
loc | Just as in toSqlString(Criteria, int, CriteriaQuery) , represents the number of columns rendered
prior to this projection. |
---|
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
SELECT clause (toSqlString(Criteria, int, CriteriaQuery)
for a particular criteria-level alias.
alias | The criteria-level alias |
---|---|
loc | Just as in toSqlString(Criteria, int, CriteriaQuery) , represents the number of columns rendered
prior to this projection. |
Get the return types for a particular user-visible alias.
Differs fromgetTypes(org.hibernate.Criteria, CriteriaQuery)
in that here we are only interested in
the types related to the given criteria-level alias.alias | The criteria-level alias for which to find types. |
---|---|
crit | The local criteria to which this project is attached (for resolution). |
criteriaQuery | The overall criteria query instance. |
Types returned by the rendered SQL fragment
. In other words what are the types
that would represent the values this projection asked to be pulled into the result set?
crit | The local criteria to which this project is attached (for resolution). |
---|---|
criteriaQuery | The overall criteria query instance. |
HibernateException |
---|
Is this projection fragment (SELECT clause) also part of the GROUP BY
Render the SQL fragment to be used in the GROUP BY clause
criteria | The local criteria to which this project is attached (for resolution). |
---|---|
criteriaQuery | The overall criteria query instance. |
HibernateException |
---|
Render the SQL fragment to be used in the SELECT clause.
criteria | The local criteria to which this project is attached (for resolution). |
---|---|
loc | The number of columns rendered in the SELECT clause before this projection. Generally speaking this is useful to ensure uniqueness of the individual columns aliases. |
criteriaQuery | The overall criteria query instance. |
HibernateException |
---|