* Symfoware: CASE WHEN x >= y THEN x ELSE y END
*
* @return the defined expression operator.
*/
protected static ExpressionOperator greatest() {
ExpressionOperator exOperator = new ExpressionOperator();
exOperator.setType(ExpressionOperator.FunctionOperator);
exOperator.setSelector(ExpressionOperator.Greatest);
Vector<String> v = NonSynchronizedVector.newInstance(5);
v.addElement("(CASE WHEN ");
v.addElement(" >= ");
v.addElement(" THEN ");
v.addElement(" ELSE ");
v.addElement(" END)");
exOperator.printsAs(v);
exOperator.bePrefix();
int[] indices = {0, 1, 0, 1};
exOperator.setArgumentIndices(indices);
exOperator.setNodeClass(ClassConstants.FunctionExpression_Class);
return exOperator;
}