Top Description Fields Constructors Methods
org.hibernate.query.criteria.internal.expression

public Class CoalesceExpression<T>

extends ExpressionImpl<T>
implements CriteriaBuilder.Coalesce<T>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.persistence.criteria.CriteriaBuilder.Coalesce, javax.persistence.criteria.Expression, javax.persistence.criteria.Selection, javax.persistence.TupleElement
Imports
java.io.Serializable, java.util.ArrayList, .List, javax.persistence.criteria.CriteriaBuilder.Coalesce, .Expression, org.hibernate.query.criteria.internal.CriteriaBuilderImpl, .ParameterRegistry, .Renderable, org.hibernate.query.criteria.internal.compile.RenderingContext

Models an ANSI SQL COALESCE expression. COALESCE is a specialized CASE statement.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final List<Expression<? extends T>>
private Class<T>

Constructor Summary

AccessConstructor and Description
public
public
CoalesceExpression(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType)

Method Summary

Modifier and TypeMethod and Description
public List<Expression<? extends T>>
public Class<T>
public void
registerParameters(ParameterRegistry
The parameter registry with which to register.
registry
)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.
public String
render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition
public CriteriaBuilder.Coalesce<T>
value(T
value
value
)

Implements javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Add an argument to the coalesce expression.
public CriteriaBuilder.Coalesce<T>
value(Expression<? extends T>
expression
value
)

Implements javax.persistence.criteria.CriteriaBuilder.Coalesce.value, javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Add an argument to the coalesce expression.
Inherited from org.hibernate.query.criteria.internal.expression.ExpressionImpl:
asasBigDecimalasBigIntegerasDoubleasFloatasIntegerasLongasStringininininisNotNullisNull

Field Detail

expressionsback to summary
private final List<Expression<? extends T>> expressions
javaTypeback to summary
private Class<T> javaType

Hides org.hibernate.query.criteria.internal.expression.AbstractTupleElement.javaType.

Constructor Detail

CoalesceExpressionback to summary
public CoalesceExpression(CriteriaBuilderImpl criteriaBuilder)
CoalesceExpressionback to summary
public CoalesceExpression(CriteriaBuilderImpl criteriaBuilder, Class<T> javaType)

Method Detail

getExpressionsback to summary
public List<Expression<? extends T>> getExpressions()
getJavaTypeback to summary
public Class<T> getJavaType()

Overrides org.hibernate.query.criteria.internal.expression.AbstractTupleElement.getJavaType.

Implements javax.persistence.TupleElement.getJavaType.

Doc from javax.persistence.TupleElement.getJavaType.

Return the Java type of the tuple element.

Returns:Class<T>

the Java type of the tuple element

Annotations
@Override
registerParametersback to summary
public void registerParameters(ParameterRegistry registry)

Implements org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Doc from org.hibernate.query.criteria.internal.ParameterContainer.registerParameters.

Register any parameters contained within this query component with the given registry.

Parameters
registry:ParameterRegistry

The parameter registry with which to register.

renderback to summary
public String render(RenderingContext renderingContext)

Implements org.hibernate.query.criteria.internal.Renderable.render.

Doc from org.hibernate.query.criteria.internal.Renderable.render.

Perform the rendering, returning the rendition

valueback to summary
public CriteriaBuilder.Coalesce<T> value(T value)

Implements javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Doc from javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Add an argument to the coalesce expression.

Parameters
value:T

value

Returns:CriteriaBuilder.Coalesce<T>

coalesce expression

valueback to summary
public CriteriaBuilder.Coalesce<T> value(Expression<? extends T> value)

Implements javax.persistence.criteria.CriteriaBuilder.Coalesce.value, javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Doc from javax.persistence.criteria.CriteriaBuilder.Coalesce.value.

Add an argument to the coalesce expression.

Parameters
value:Expression<? extends T>

expression

Returns:CriteriaBuilder.Coalesce<T>

coalesce expression

Annotations
@SuppressWarnings:unchecked