类 AggregationFunction<T>
- java.lang.Object
-
- org.hibernate.query.criteria.internal.AbstractNode
-
- org.hibernate.query.criteria.internal.expression.AbstractTupleElement<X>
-
- org.hibernate.query.criteria.internal.expression.SelectionImpl<T>
-
- org.hibernate.query.criteria.internal.expression.ExpressionImpl<X>
-
- org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression<X>
-
- org.hibernate.query.criteria.internal.expression.function.ParameterizedFunctionExpression<T>
-
- org.hibernate.query.criteria.internal.expression.function.AggregationFunction<T>
-
- 所有已实现的接口:
Serializable,javax.persistence.criteria.Expression<T>,javax.persistence.criteria.Selection<T>,javax.persistence.TupleElement<T>,FunctionExpression<T>,ExpressionImplementor<T>,ParameterContainer,Renderable,SelectionImplementor<T>,TupleElementImplementor<T>
- 直接已知子类:
AggregationFunction.AVG,AggregationFunction.COUNT,AggregationFunction.GREATEST,AggregationFunction.LEAST,AggregationFunction.MAX,AggregationFunction.MIN,AggregationFunction.SUM
public class AggregationFunction<T> extends ParameterizedFunctionExpression<T> implements Serializable
Models SQL aggregation functions (MIN, MAX, COUNT, etc).- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAggregationFunction.AVGImplementation of a AVG function providing convenience in construction.static classAggregationFunction.COUNTImplementation of a COUNT function providing convenience in construction.static classAggregationFunction.GREATEST<X extends Comparable<X>>Models the MAX function in terms of non-numeric expressions.static classAggregationFunction.LEAST<X extends Comparable<X>>Models the MIN function in terms of non-numeric expressions.static classAggregationFunction.MAX<N extends Number>Implementation of a MAX function providing convenience in construction.static classAggregationFunction.MIN<N extends Number>Implementation of a MIN function providing convenience in construction.static classAggregationFunction.SUM<N extends Number>Implementation of a SUM function providing convenience in construction.-
从接口继承的嵌套类/接口 org.hibernate.query.criteria.internal.ParameterContainer
ParameterContainer.Helper
-
-
字段概要
-
从类继承的字段 org.hibernate.query.criteria.internal.expression.function.ParameterizedFunctionExpression
STANDARD_JPA_FUNCTION_NAMES
-
-
构造器概要
构造器 构造器 说明 AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, Object argument)Constructs an aggregation function with a single literal argument.AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, javax.persistence.criteria.Expression<?> argument)Constructs an aggregation function with a single literal argument.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanisAggregation()Is this function a value aggregator (like a COUNT or MAX function e.g.)?protected booleanisStandardJpaFunction()-
从类继承的方法 org.hibernate.query.criteria.internal.expression.function.ParameterizedFunctionExpression
getArgumentExpressions, properSize, registerParameters, render, renderArguments
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression
getFunctionName
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.ExpressionImpl
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.SelectionImpl
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
-
从类继承的方法 org.hibernate.query.criteria.internal.expression.AbstractTupleElement
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
-
从类继承的方法 org.hibernate.query.criteria.internal.AbstractNode
criteriaBuilder
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.query.criteria.internal.expression.function.FunctionExpression
getFunctionName
-
从接口继承的方法 org.hibernate.query.criteria.internal.SelectionImplementor
getValueHandlers
-
从接口继承的方法 org.hibernate.query.criteria.internal.TupleElementImplementor
getValueHandler
-
-
-
-
构造器详细资料
-
AggregationFunction
public AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, Object argument)
Constructs an aggregation function with a single literal argument.- 参数:
criteriaBuilder- The query builder instance.returnType- The function return type.functionName- The name of the function.argument- The literal argument
-
AggregationFunction
public AggregationFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> returnType, String functionName, javax.persistence.criteria.Expression<?> argument)
Constructs an aggregation function with a single literal argument.- 参数:
criteriaBuilder- The query builder instance.returnType- The function return type.functionName- The name of the function.argument- The argument
-
-
方法详细资料
-
isAggregation
public boolean isAggregation()
从接口复制的说明:FunctionExpressionIs this function a value aggregator (like a COUNT or MAX function e.g.)?- 指定者:
isAggregation在接口中FunctionExpression<T>- 覆盖:
isAggregation在类中BasicFunctionExpression<T>- 返回:
- True if this functions does aggregation.
-
isStandardJpaFunction
protected boolean isStandardJpaFunction()
-
-