public class LiteralExpression<T> extends ExpressionImpl<T> implements Serializable
ParameterContainer.Helper
Constructor and Description |
---|
LiteralExpression(CriteriaBuilderImpl criteriaBuilder,
Class<T> type,
T literal) |
LiteralExpression(CriteriaBuilderImpl criteriaBuilder,
T literal) |
Modifier and Type | Method and Description |
---|---|
T |
getLiteral() |
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
String |
render(CriteriaQueryCompiler.RenderingContext renderingContext) |
String |
renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext) |
protected void |
resetJavaType(Class targetType) |
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
alias, getCompoundSelectionItems, getValueHandlers, isCompoundSelection
forceConversion, getAlias, getJavaType, getValueHandler, setAlias
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValueHandlers
getValueHandler
alias, getCompoundSelectionItems, isCompoundSelection
getAlias, getJavaType
public LiteralExpression(CriteriaBuilderImpl criteriaBuilder, T literal)
public LiteralExpression(CriteriaBuilderImpl criteriaBuilder, Class<T> type, T literal)
public T getLiteral()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registerParameters
in interface ParameterContainer
registry
- The parameter registry with which to register.public String render(CriteriaQueryCompiler.RenderingContext renderingContext)
render
in interface Renderable
public String renderProjection(CriteriaQueryCompiler.RenderingContext renderingContext)
renderProjection
in interface Renderable
protected void resetJavaType(Class targetType)
resetJavaType
in class AbstractTupleElement<T>
Copyright © 2018 JBoss by Red Hat. All rights reserved.