public interface EnhancedProjection extends Projection
An "enhanced" Projection for a Criteria
query.
Projection
,
Criteria
Modifier and Type | Method and Description |
---|---|
String[] |
getColumnAliases(int position,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (
Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery) . |
String[] |
getColumnAliases(String alias,
int position,
Criteria criteria,
CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (
Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery) <i>for a particular criteria-level alias</i>. |
getAliases, getColumnAliases, getColumnAliases, getTypes, getTypes, isGrouped, toGroupSqlString, toSqlString
String[] getColumnAliases(int position, Criteria criteria, CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)
. Hibernate always uses column aliases to extract data from the
JDBC ResultSet
, so it is important that these be implemented correctly in order for
Hibernate to be able to extract these val;ues correctly.
position
- Just as in Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)
, represents the number of <b>columns</b> rendered
prior to this projection.criteria
- The local criteria to which this project is attached (for resolution).criteriaQuery
- The overall criteria query instance.String[] getColumnAliases(String alias, int position, Criteria criteria, CriteriaQuery criteriaQuery)
Get the SQL column aliases used by this projection for the columns it writes for inclusion into the
<tt>SELECT</tt> clause (Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)
<i>for a particular criteria-level alias</i>.
alias
- The criteria-level aliasposition
- Just as in Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)
, represents the number of <b>columns</b> rendered
prior to this projection.criteria
- The local criteria to which this project is attached (for resolution).criteriaQuery
- The overall criteria query instance.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.