A
COALESCE
expression returns
null
if all its arguments evaluate to
null
, and the value of the first non-
null
argument otherwise.
The return type is the type returned by the arguments if they are all of the same type, otherwise it is undetermined.
BNF: coalesce_expression::= COALESCE(scalar_expression {, scalar_expression}+)
@see CoalesceExpression
@version 2.4
@since 2.4
@author Pascal Filion
| * {@inheritDoc}
*/
@Override
public void visit(CoalesceExpression expression) {
CoalesceExpressionStateObject stateObject = new CoalesceExpressionStateObject(
parent,
buildChildren(expression.getExpression())
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| List<StateObject> stateObjects = new ArrayList<StateObject>();
stateObjects.addAll(stateObjects(builders));
stateObjects.add(0, pop());
stateObjects.add(0, pop());
StateObject stateObject = new CoalesceExpressionStateObject(parent, stateObjects);
add(stateObject);
return (T) this;
}
|
| * {@inheritDoc}
*/
@Override
public void visit(CoalesceExpression expression) {
CoalesceExpressionStateObject stateObject = new CoalesceExpressionStateObject(
parent,
buildChildren(expression.getExpression())
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| List<StateObject> stateObjects = new ArrayList<StateObject>();
stateObjects.addAll(stateObjects(builders));
stateObjects.add(0, pop());
stateObjects.add(0, pop());
StateObject stateObject = new CoalesceExpressionStateObject(parent, stateObjects);
add(stateObject);
return (T) this;
}
|
| * {@inheritDoc}
*/
@Override
public void visit(CoalesceExpression expression) {
CoalesceExpressionStateObject stateObject = new CoalesceExpressionStateObject(
parent,
buildChildren(expression.getExpression())
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
Related Classes of org.eclipse.persistence.jpa.jpql.model.query.CoalesceExpressionStateObject
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.