/** * Do any required validation for this node. Throw an exception if it's incorrect. */ public void validateNode() { if (this.firstChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.firstChild).getTable()); } if (this.secondChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.secondChild).getTable()); } } }
/** * Do any required validation for this node. Throw an exception if it's incorrect. */ public void validateNode() { if (this.firstChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.firstChild).getTable()); } if (this.secondChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.secondChild).getTable()); } } }
/** * Do any required validation for this node. Throw an exception if it's incorrect. */ public void validateNode() { if (this.firstChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.firstChild).getTable()); } if (this.secondChild.isTableExpression()) { throw QueryException.cannotCompareTablesInExpression(((TableExpression)this.secondChild).getTable()); } } }
public void iterate(Expression each) { if(each.isTableExpression()) { ((Collection)this.getResult()).add(((TableExpression)each).getTable()); } else if(each.isDataExpression()) { DatabaseField field = ((DataExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } else if(each.isParameterExpression()) { DatabaseField field = ((ParameterExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } } };
public void iterate(Expression each) { if(each.isTableExpression()) { ((Collection)this.getResult()).add(((TableExpression)each).getTable()); } else if(each.isDataExpression()) { DatabaseField field = ((DataExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } else if(each.isParameterExpression()) { DatabaseField field = ((ParameterExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } } };
public void iterate(Expression each) { if(each.isTableExpression()) { ((Collection)this.getResult()).add(((TableExpression)each).getTable()); } else if(each.isDataExpression()) { DatabaseField field = ((DataExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } else if(each.isParameterExpression()) { DatabaseField field = ((ParameterExpression)each).getField(); if(field != null && field.hasTableName()) { ((Collection)this.getResult()).add(field.getTable()); } } } };
/** * INTERNAL: * Normalize the expression into a printable structure. */ public Expression normalize(ExpressionNormalizer normalizer) { Expression expression = super.normalize(normalizer); // to support custom types, print expressions derived from field expressions, table expressions and direct query keys with their aliases if (getBaseExpression() != null && getBaseExpression().isFieldExpression() || getBaseExpression().isTableExpression() || (getBaseExpression().isQueryKeyExpression() && ((QueryKeyExpression)getBaseExpression()).isAttribute())){ getBuilder().getStatement().setRequiresAliases(true); } return expression; }
/** * INTERNAL: * Normalize the expression into a printable structure. */ public Expression normalize(ExpressionNormalizer normalizer) { if (this.hasBeenNormalized) { return this; } Expression expression = super.normalize(normalizer); // to support custom types, print expressions derived from field expressions, table expressions and direct query keys with their aliases if (getBaseExpression() != null && getBaseExpression().isFieldExpression() || getBaseExpression().isTableExpression() || (getBaseExpression().isQueryKeyExpression() && ((QueryKeyExpression)getBaseExpression()).isAttribute())){ getBuilder().getStatement().setRequiresAliases(true); } return expression; }
/** * INTERNAL: * Normalize the expression into a printable structure. */ public Expression normalize(ExpressionNormalizer normalizer) { if (this.hasBeenNormalized) { return this; } Expression expression = super.normalize(normalizer); // to support custom types, print expressions derived from field expressions, table expressions and direct query keys with their aliases if (getBaseExpression() != null && getBaseExpression().isFieldExpression() || getBaseExpression().isTableExpression() || (getBaseExpression().isQueryKeyExpression() && ((QueryKeyExpression)getBaseExpression()).isAttribute())){ getBuilder().getStatement().setRequiresAliases(true); } return expression; }