public abstract class DelegatedExpressionImpl<T> extends ExpressionImpl<T>
Expression
wraps another Expression and delegates most of its
functionality to that wrapped ExpressionParameterContainer.Helper
Constructor and Description |
---|
DelegatedExpressionImpl(ExpressionImpl<T> wrapped) |
Modifier and Type | Method and Description |
---|---|
Selection<T> |
alias(String alias)
Assigns an alias to the selection item.
|
protected void |
forceConversion(ValueHandlerFactory.ValueHandler<T> tValueHandler) |
String |
getAlias()
Return the alias assigned to the tuple element or null,
if no alias has been assigned.
|
List<Selection<?>> |
getCompoundSelectionItems()
Return the selection items composing a compound selection.
|
Class<T> |
getJavaType()
Return the Java type of the tuple element.
|
ValueHandlerFactory.ValueHandler<T> |
getValueHandler() |
List<ValueHandlerFactory.ValueHandler> |
getValueHandlers() |
ExpressionImpl<T> |
getWrapped() |
boolean |
isCompoundSelection()
Whether the selection item is a compound selection.
|
void |
registerParameters(ParameterRegistry registry)
Register any parameters contained within this query component with the given registry.
|
protected void |
resetJavaType(Class targetType) |
protected void |
setAlias(String alias)
Protected access to define the alias.
|
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, in, in, in, in, isNotNull, isNull
criteriaBuilder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render, renderProjection
public DelegatedExpressionImpl(ExpressionImpl<T> wrapped)
public ExpressionImpl<T> getWrapped()
public void registerParameters(ParameterRegistry registry)
ParameterContainer
registry
- The parameter registry with which to register.public Selection<T> alias(String alias)
Selection
public boolean isCompoundSelection()
Selection
isCompoundSelection
in interface Selection<T>
isCompoundSelection
in class SelectionImpl<T>
public List<ValueHandlerFactory.ValueHandler> getValueHandlers()
getValueHandlers
in interface SelectionImplementor<T>
getValueHandlers
in class SelectionImpl<T>
public List<Selection<?>> getCompoundSelectionItems()
Selection
getCompoundSelectionItems
in interface Selection<T>
getCompoundSelectionItems
in class SelectionImpl<T>
public Class<T> getJavaType()
TupleElement
getJavaType
in interface TupleElement<T>
getJavaType
in class AbstractTupleElement<T>
protected void resetJavaType(Class targetType)
resetJavaType
in class AbstractTupleElement<T>
protected void forceConversion(ValueHandlerFactory.ValueHandler<T> tValueHandler)
forceConversion
in class AbstractTupleElement<T>
public ValueHandlerFactory.ValueHandler<T> getValueHandler()
getValueHandler
in interface TupleElementImplementor<T>
getValueHandler
in class AbstractTupleElement<T>
public String getAlias()
TupleElement
getAlias
in interface TupleElement<T>
getAlias
in class AbstractTupleElement<T>
protected void setAlias(String alias)
AbstractTupleElement
setAlias
in class AbstractTupleElement<T>
alias
- The alias to use.Copyright © 2017 JBoss by Red Hat. All rights reserved.