类 AggregateCondition
- java.lang.Object
-
- tk.mybatis.mapper.additional.aggregation.AggregateCondition
-
- 所有已实现的接口:
Serializable
public class AggregateCondition extends Object implements Serializable
聚合查询条件- 作者:
- liuchan, liuzh
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AggregateCondition()AggregateCondition(String aggregateProperty)默认查询count计数,不分组AggregateCondition(String aggregateProperty, String[] groupByProperties)默认查询count计数AggregateCondition(String aggregateProperty, AggregateType aggregateType)按指定聚合方法查询,不分组AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 AggregateConditionaggregateBy(String aggregateProperty)AggregateConditionaggregateType(AggregateType aggregateType)AggregateConditionaliasName(String aggregateAliasName)static AggregateConditionbuilder()StringgetAggregateAliasName()StringgetAggregateProperty()AggregateTypegetAggregateType()List<String>getGroupByProperties()AggregateConditiongroupBy(String... groupByProperties)
-
-
-
构造器详细资料
-
AggregateCondition
public AggregateCondition()
-
AggregateCondition
public AggregateCondition(String aggregateProperty)
默认查询count计数,不分组- 参数:
aggregateProperty- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格
-
AggregateCondition
public AggregateCondition(String aggregateProperty, String[] groupByProperties)
默认查询count计数- 参数:
aggregateProperty- 聚合查询属性,不能为空;为保证返回结果key与传入值相同 方法不会去除前后空格groupByProperties- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
-
AggregateCondition
public AggregateCondition(String aggregateProperty, AggregateType aggregateType)
按指定聚合方法查询,不分组- 参数:
aggregateProperty-aggregateType-
-
AggregateCondition
public AggregateCondition(String aggregateProperty, AggregateType aggregateType, String[] groupByProperties)
- 参数:
aggregateProperty- 不能为空,为保证返回结果key与传入值相同 方法不会去除前后空格aggregateType-groupByProperties- 为保证返回结果key与传入值相同 方法不会去除每一项前后空格
-
-
方法详细资料
-
builder
public static AggregateCondition builder()
-
groupBy
public AggregateCondition groupBy(String... groupByProperties)
-
aggregateBy
public AggregateCondition aggregateBy(String aggregateProperty)
-
aliasName
public AggregateCondition aliasName(String aggregateAliasName)
-
aggregateType
public AggregateCondition aggregateType(AggregateType aggregateType)
-
getAggregateProperty
public String getAggregateProperty()
-
getAggregateAliasName
public String getAggregateAliasName()
-
getAggregateType
public AggregateType getAggregateType()
-
-