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(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, isCompoundSelectiongetAlias, getJavaTypegetValueHandlersgetValueHandlerpublic static final String CAST_NAME
public CastFunction(CriteriaBuilderImpl criteriaBuilder, 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 String render(RenderingContext renderingContext)
render in interface Renderablerender in class BasicFunctionExpression<T>Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.