NULLIF
returns the first expression if the two expressions are not equal. If the expressions are equal,
NULLIF
returns a null value of the type of the first expression.
NULLIF
is equivalent to a searched CASE
expression in which the two expressions are equal and the resulting expression is NULL
.
Returns the same type as the first expression.
BNF: nullif_expression::= NULLIF(scalar_expression, scalar_expression)
@see NullIfExpression
@version 2.4
@since 2.4
@author Pascal Filion
| StateObject firstStateObject = stateObject;
expression.getSecondExpression().accept(this);
StateObject secondStateObject = stateObject;
NullIfExpressionStateObject stateObject = new NullIfExpressionStateObject(
parent,
firstStateObject,
secondStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| checkBuilders(builder1, builder2);
StateObject rightStateObject = pop();
StateObject leftStateObject = pop();
StateObject stateObject = new NullIfExpressionStateObject(
parent,
leftStateObject,
rightStateObject
);
|
| StateObject firstStateObject = stateObject;
expression.getSecondExpression().accept(this);
StateObject secondStateObject = stateObject;
NullIfExpressionStateObject stateObject = new NullIfExpressionStateObject(
parent,
firstStateObject,
secondStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| StateObject firstStateObject = stateObject;
expression.getSecondExpression().accept(this);
StateObject secondStateObject = stateObject;
NullIfExpressionStateObject stateObject = new NullIfExpressionStateObject(
parent,
firstStateObject,
secondStateObject
);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
| checkBuilders(builder1, builder2);
StateObject rightStateObject = pop();
StateObject leftStateObject = pop();
StateObject stateObject = new NullIfExpressionStateObject(
parent,
leftStateObject,
rightStateObject
);
|
Related Classes of org.eclipse.persistence.jpa.jpql.model.query.NullIfExpressionStateObject
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.