Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal.expression.function

public Class ParameterizedFunctionExpression<X>

extends BasicFunctionExpression<X>
implements FunctionExpression<X>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.criteria.internal.expression.function.FunctionExpression, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Known Direct Subclasses
org.hibernate.query.criteria.internal.expression.function.SqrtFunction, org.hibernate.query.criteria.internal.expression.function.UpperFunction, org.hibernate.query.criteria.internal.expression.function.AbsFunction, org.hibernate.query.criteria.internal.expression.function.AggregationFunction, org.hibernate.query.criteria.internal.expression.function.LengthFunction, org.hibernate.query.criteria.internal.expression.function.LowerFunction
Imports
java.util.Arrays, .List, .Locale, javax.persistence.criteria.Expression, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterContainer, .ParameterRegistry, .Renderable, org.hibernate.query.criteria.internal.compile.RenderingContext

Support for functions with parameters.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<Expression<?>>
private final boolean
public static final List<String>

Constructor Summary

AccessConstructor and Description
public
ParameterizedFunctionExpression(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, String functionName, List<Expression<?>> argumentExpressions)

public
ParameterizedFunctionExpression(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, String functionName, Expression<?>... argumentExpressions)

Method Summary

Modifier and TypeMethod and Description
public List<Expression<?>>
protected boolean
protected static int
public void
registerParameters(ParameterRegistry
The parameter registry with which to register.
registry
)

Overrides org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression.registerParameters.

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.
public String
protected void
Inherited from org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression:
getFunctionNameisAggregation

Field Detail

argumentExpressionsback to summary
private final List<Expression<?>> argumentExpressions
isStandardJpaFunctionback to summary
private final boolean isStandardJpaFunction
STANDARD_JPA_FUNCTION_NAMESback to summary
public static final List<String> STANDARD_JPA_FUNCTION_NAMES

Constructor Detail

ParameterizedFunctionExpressionback to summary
public ParameterizedFunctionExpression(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, String functionName, List<Expression<?>> argumentExpressions)
ParameterizedFunctionExpressionback to summary
public ParameterizedFunctionExpression(CriteriaBuilderImpl criteriaBuilder, Class<X> javaType, String functionName, Expression<?>... argumentExpressions)

Method Detail

getArgumentExpressionsback to summary
public List<Expression<?>> getArgumentExpressions()
isStandardJpaFunctionback to summary
protected boolean isStandardJpaFunction()
properSizeback to summary
protected static int properSize(int number)

Hides org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression.properSize.

registerParametersback to summary
public void registerParameters(ParameterRegistry registry)

Overrides org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression.registerParameters.

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Doc from org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.

Parameters
registry:ParameterRegistry

The parameter registry with which to register.

Annotations
@Override
renderback to summary
public String render(RenderingContext renderingContext)

Overrides org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression.render.

Implements org.hibernate.query.criteria.internal.Renderable.render.

Doc from org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition

Annotations
@Override
renderArgumentsback to summary
protected void renderArguments(StringBuilder buffer, RenderingContext renderingContext)