接口 EnhancedProjection
-
- 所有超级接口:
Projection,Serializable
- 所有已知实现类:
AggregateProjection,AliasedProjection,AvgProjection,CountProjection,Distinct,IdentifierProjection,ProjectionList,Property,PropertyProjection,RowCountProjection,SimpleProjection
public interface EnhancedProjection extends Projection
An "enhanced" Projection for aCriteriaquery.- 作者:
- Gail Badner
- 另请参阅:
Projection,Criteria
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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 (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 SELECT clause (Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)for a particular criteria-level alias.-
从接口继承的方法 org.hibernate.criterion.Projection
getAliases, getColumnAliases, getColumnAliases, getTypes, getTypes, isGrouped, toGroupSqlString, toSqlString
-
-
-
-
方法详细资料
-
getColumnAliases
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 (Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery). Hibernate always uses column aliases to extract data from the JDBCResultSet, so it is important that these be implemented correctly in order for Hibernate to be able to extract these values correctly.- 参数:
position- Just as inProjection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.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.- 返回:
- The columns aliases.
-
getColumnAliases
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 (Projection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.CriteriaQuery)for a particular criteria-level alias.- 参数:
alias- The criteria-level aliasposition- Just as inProjection.toSqlString(org.hibernate.Criteria, int, org.hibernate.criterion.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.- 返回:
- The columns aliases pertaining to a particular criteria-level alias; expected to return null if this projection does not understand this alias.
-
-