javax.persistence.criteria
Interface CriteriaBuilder.Coalesce<T>

All Superinterfaces:
Expression<T>, Selection<T>, TupleElement<T>
Enclosing interface:
CriteriaBuilder

public static interface CriteriaBuilder.Coalesce<T>
extends Expression<T>

Interface used to build coalesce expressions. A coalesce expression is equivalent to a case expression that returns null if all its arguments evaluate to null, and the value of its first non-null argument otherwise.


Method Summary
 CriteriaBuilder.Coalesce<T> value(Expression<? extends T> value)
          Add an argument to the coalesce expression.
 CriteriaBuilder.Coalesce<T> value(T value)
          Add an argument to the coalesce expression.
 
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
 
Methods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
 
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
 

Method Detail

value

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

Parameters:
value - value
Returns:
coalesce expression

value

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

Parameters:
value - expression
Returns:
coalesce expression


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.