T
- The cast result type.Y
- The type of the expression to be cast.public class CastFunction<T,Y> extends BasicFunctionExpression<T> implements FunctionExpression<T>, Serializable
ParameterContainer.Helper
Constructor and Description |
---|
CastFunction(CriteriaBuilderImpl criteriaBuilder,
Class<T> javaType,
ExpressionImpl<Y> castSource) |
Modifier and Type | Method and Description |
---|---|
ExpressionImpl<Y> |
getCastSource() |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
getFunctionName, isAggregation, properSize, renderProjection
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFunctionName, isAggregation
as, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
getValueHandlers
getValueHandler
public static final String CAST_NAME
public CastFunction(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType, ExpressionImpl<Y> castSource)
public ExpressionImpl<Y> getCastSource()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registerParameters
in class BasicFunctionExpression<T>
registry
- The parameter registry with which to register.public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render
in interface Renderable
render
in class BasicFunctionExpression<T>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.