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(RenderingContext renderingContext)
Render clause
|
String |
renderGroupBy(RenderingContext renderingContext)
Render GROUP BY clause
|
String |
renderProjection(RenderingContext renderingContext)
Render SELECT clause
|
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(RenderingContext renderingContext)
Renderable
render
in interface Renderable
renderingContext
- contextpublic String renderProjection(RenderingContext renderingContext)
Renderable
renderProjection
in interface Renderable
renderingContext
- contextpublic String renderGroupBy(RenderingContext renderingContext)
Renderable
renderGroupBy
in interface Renderable
renderingContext
- contextprotected void resetJavaType(Class targetType)
resetJavaType
in class AbstractTupleElement<T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.