类 CountProjection
- java.lang.Object
-
- org.hibernate.criterion.SimpleProjection
-
- org.hibernate.criterion.AggregateProjection
-
- org.hibernate.criterion.CountProjection
-
- 所有已实现的接口:
Serializable,EnhancedProjection,Projection
public class CountProjection extends AggregateProjection
A count projection- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.hibernate.criterion.AggregateProjection
propertyName
-
-
构造器概要
构造器 限定符 构造器 说明 protectedCountProjection(String prop)Constructs the count projection.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ListbuildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)CountProjectionsetDistinct()Sets the count as being distinctStringtoString()-
从类继承的方法 org.hibernate.criterion.AggregateProjection
buildFunctionParameterList, getFunction, getFunction, getFunctionName, getPropertyName, getTypes, toSqlString
-
从类继承的方法 org.hibernate.criterion.SimpleProjection
as, getAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnAliases, getColumnCount, getTypes, isGrouped, toGroupSqlString
-
-
-
-
构造器详细资料
-
CountProjection
protected CountProjection(String prop)
Constructs the count projection.- 参数:
prop- The property name- 另请参阅:
Projections.count(String),Projections.countDistinct(String)
-
-
方法详细资料
-
buildFunctionParameterList
protected List buildFunctionParameterList(Criteria criteria, CriteriaQuery criteriaQuery)
-
setDistinct
public CountProjection setDistinct()
Sets the count as being distinct- 返回:
this, for method chaining
-
toString
public String toString()
- 覆盖:
toString在类中AggregateProjection
-
-