Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.criterion.SimpleProjection
org.hibernate.criterion.AggregateProjection
org.hibernate.criterion.CountProjection
public class CountProjection
extends AggregateProjection
Field Summary |
Fields inherited from class org.hibernate.criterion.AggregateProjection | |
propertyName |
Constructor Summary | |
|
Method Summary | |
Type[] |
|
CountProjection | |
String |
|
String |
|
Methods inherited from class org.hibernate.criterion.AggregateProjection | |
getTypes , toSqlString , toString |
Methods inherited from class org.hibernate.criterion.SimpleProjection | |
as , getAliases , getColumnAliases , getColumnAliases , getTypes , isGrouped , toGroupSqlString |
public Type[] getTypes(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Return types returned by the rendered SQL fragment
- Specified by:
- getTypes in interface Projection
- Overrides:
- getTypes in interface AggregateProjection
- Parameters:
criteria
-criteriaQuery
-
- Returns:
- Type[]
- Throws:
HibernateException
-
public String toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery) throws HibernateException
Render the SQL fragment
- Specified by:
- toSqlString in interface Projection
- Overrides:
- toSqlString in interface AggregateProjection
- Parameters:
criteriaQuery
-
- Returns:
- String
- Throws:
HibernateException
-