public class AggregateProjection extends SimpleProjection
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
propertyName |
Modifier | Constructor and Description |
---|---|
protected |
AggregateProjection(java.lang.String functionName,
java.lang.String propertyName) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List |
buildFunctionParameterList(Criteria criteria,
CriteriaQuery criteriaQuery) |
protected java.util.List |
buildFunctionParameterList(java.lang.String column) |
protected SQLFunction |
getFunction(CriteriaQuery criteriaQuery) |
protected SQLFunction |
getFunction(java.lang.String functionName,
CriteriaQuery criteriaQuery) |
java.lang.String |
getFunctionName() |
java.lang.String |
getPropertyName() |
Type[] |
getTypes(Criteria criteria,
CriteriaQuery criteriaQuery)
Types returned by the rendered SQL
fragment . |
java.lang.String |
toSqlString(Criteria criteria,
int loc,
CriteriaQuery criteriaQuery)
Render the SQL fragment to be used in the SELECT clause.
|
java.lang.String |
toString() |
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlString
protected AggregateProjection(java.lang.String functionName, java.lang.String propertyName)
public java.lang.String getFunctionName()
public java.lang.String getPropertyName()
public java.lang.String toString()
toString
in class java.lang.Object
public Type[] getTypes(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
fragment
. In other words what are the types
that would represent the values this projection asked to be pulled into the result set?criteria
- The local criteria to which this project is attached (for resolution).criteriaQuery
- The overall criteria query instance.HibernateException
- Indicates a problem resolving the typespublic java.lang.String toSqlString(Criteria criteria, int loc, CriteriaQuery criteriaQuery) throws HibernateException
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
- Indicates a problem performing the renderingprotected SQLFunction getFunction(CriteriaQuery criteriaQuery)
protected SQLFunction getFunction(java.lang.String functionName, CriteriaQuery criteriaQuery)
protected java.util.List buildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)
protected java.util.List buildFunctionParameterList(java.lang.String column)
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.