Purpose: Represent an unary '-' in EJBQL
Responsibilities:
super();
INTERNAL Generate the expression. Expression whereClause = new ConstantExpression(new Integer(0), new ExpressionBuilder()); whereClause = ExpressionMath.subtract(whereClause, getLeft().generateExpression(context)); return whereClause;
Expression whereClause = new ConstantExpression(new Integer(0), new ExpressionBuilder()); whereClause = ExpressionMath.subtract(whereClause, getLeft().generateExpression(context)); return whereClause;
INTERNAL Validate node and calculate its type. if (left != null) { left.validate(context); setType(left.getType()); }
if (left != null) { left.validate(context); setType(left.getType()); }
INTERNAL // delegate to the argument node left.validateParameter(context, contextType);
// delegate to the argument node left.validateParameter(context, contextType);