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) |
getFunctionName, isAggregation, properSize, renderProjectionas, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, getValueHandlers, isCompoundSelectionforceConversion, getAlias, getJavaType, getValueHandler, resetJavaType, setAliascriteriaBuilderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFunctionName, isAggregationas, in, in, in, in, isNotNull, isNullalias, getCompoundSelectionItems, isCompoundSelectiongetValueHandlersgetValueHandlerpublic 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)
ParameterContainerregisterParameters in interface ParameterContainerregisterParameters in class BasicFunctionExpression<T>registry - The parameter registry with which to register.public java.lang.String render(RenderingContext renderingContext)
render in interface Renderablerender in class BasicFunctionExpression<T>Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.