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

public Class CastFunction<T, Y>

extends BasicFunctionExpression<T>
implements FunctionExpression<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.query.criteria.internal.expression.function.FunctionExpression, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Type Parameters
<T>
The cast result type.
<Y>
The type of the expression to be cast.
Imports
java.io.Serializable, java.util.Locale, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterRegistry, org.hibernate.query.criteria.internal.compile.RenderingContext, org.hibernate.query.criteria.internal.expression.ExpressionImpl

Models a CAST function.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String
private final ExpressionImpl<Y>

Constructor Summary

AccessConstructor and Description
public
CastFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, ExpressionImpl<Y> castSource)

Method Summary

Modifier and TypeMethod and Description
public ExpressionImpl<Y>
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
Inherited from org.hibernate.query.criteria.internal.expression.function.BasicFunctionExpression:
getFunctionNameisAggregationproperSize

Field Detail

CAST_NAMEback to summary
public static final String CAST_NAME
castSourceback to summary
private final ExpressionImpl<Y> castSource

Constructor Detail

CastFunctionback to summary
public CastFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, ExpressionImpl<Y> castSource)

Method Detail

getCastSourceback to summary
public ExpressionImpl<Y> getCastSource()
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