public interface

EnhancedProjection

implements Projection
org.hibernate.criterion.EnhancedProjection
Known Indirect Subclasses

Class Overview

An "enhanced" Projection for a Criteria query.

Summary

Public Methods
abstract 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 SELECT clause (toSqlString(Criteria, int, CriteriaQuery) for a particular criteria-level alias.
abstract 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 SELECT clause (toSqlString(Criteria, int, CriteriaQuery).
[Expand]
Inherited Methods
From interface org.hibernate.criterion.Projection

Public Methods

public abstract 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 SELECT clause (toSqlString(Criteria, int, CriteriaQuery) for a particular criteria-level alias.

Parameters
alias The criteria-level alias
position Just as in toSqlString(Criteria, int, CriteriaQuery), represents the number of columns rendered prior to this projection.
criteria The local criteria to which this project is attached (for resolution).
criteriaQuery The overall criteria query instance.
Returns
  • The columns aliases pertaining to a particular criteria-level alias; expected to return null if this projection does not understand this alias.

public abstract 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 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.

Parameters
position Just as in toSqlString(Criteria, int, CriteriaQuery), represents the number of columns rendered prior to this projection.
criteria The local criteria to which this project is attached (for resolution).
criteriaQuery The overall criteria query instance.
Returns
  • The columns aliases.