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>, java.io.Serializable
ParameterContainer.Helper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAST_NAME |
Constructor and Description |
---|
CastFunction(CriteriaBuilderImpl criteriaBuilder,
java.lang.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.
|
java.lang.String |
render(RenderingContext renderingContext)
Render clause
|
getFunctionName, isAggregation, properSize
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
getValueHandlers
getValueHandler
renderGroupBy, renderProjection
public static final java.lang.String CAST_NAME
public CastFunction(CriteriaBuilderImpl criteriaBuilder, java.lang.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 java.lang.String render(RenderingContext renderingContext)
Renderable
render
in interface Renderable
render
in class BasicFunctionExpression<T>
renderingContext
- contextCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.