/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "SUM(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "MIN(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "COUNT(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "MAX(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "SUM(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + "." + right.getAsString(); }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " <= " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " <> " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " > " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " >= " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return "SUM(" + left.getAsString() + ")"; } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " <> " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " <= " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " <> " + right.getAsString(); } }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + "." + right.getAsString(); }
/** * INTERNAL * Get the string representation of this node. */ public String getAsString() { return left.getAsString() + " < " + right.getAsString(); } }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) { if (theQuery instanceof ReportQuery) { ReportQuery reportQuery = (ReportQuery)theQuery; Expression expression = generateExpression(generationContext); reportQuery.addItem("NullIf(" + getLeft().getAsString() + "," + getRight().getAsString() + ")", expression); } }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) { ParseTreeContext context = generationContext.getParseTreeContext(); if (theQuery instanceof ReportQuery) { ReportQuery reportQuery = (ReportQuery)theQuery; Expression expression = generateExpression(generationContext); reportQuery.addItem("NullIf(" + getLeft().getAsString() + "," + getRight().getAsString() + ")", expression); } }
public void validate(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); left.validate(context); if (!left.isVariableNode()){ throw JPQLException.indexOnlyAllowedOnVariable(context.getQueryInfo(), getLine(), getColumn(), left.getAsString()); } setType(typeHelper.getIntType()); }
public void validate(ParseTreeContext context) { TypeHelper typeHelper = context.getTypeHelper(); left.validate(context); if (!left.isVariableNode()){ throw JPQLException.indexOnlyAllowedOnVariable(context.getQueryInfo(), getLine(), getColumn(), left.getAsString()); } setType(typeHelper.getIntType()); }