/** * Comparees this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsNullCriteria)) { return false; } IsNullCriteria other = (IsNullCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(getExpression(), other.getExpression()); }
/** * Comparees this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsNullCriteria)) { return false; } IsNullCriteria other = (IsNullCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(getExpression(), other.getExpression()); }
IsNull translate(IsNullCriteria criteria) { return new IsNull(translate(criteria.getExpression()), criteria.isNegated()); }
IsNull translate(IsNullCriteria criteria) { return new IsNull(translate(criteria.getExpression()), criteria.isNegated()); }
IsNull translate(IsNullCriteria criteria) { return new IsNull(translate(criteria.getExpression()), criteria.isNegated()); }
public void visit(IsNullCriteria isNull){ if (!isNull.isNegated() && checkForInput(isNull.getExpression())) { addInputNode((Reference)isNull.getExpression()); } }
private boolean evaluate(IsNullCriteria criteria, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException { // Evaluate expression Object value = null; try { value = evaluate(criteria.getExpression(), tuple); } catch(ExpressionEvaluationException e) { throw new ExpressionEvaluationException(QueryPlugin.Event.TEIID30323, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30323, criteria)); } return (value == null ^ criteria.isNegated()); }
public void visit(IsNullCriteria isNull){ if (!isNull.isNegated() && checkForInput(isNull.getExpression())) { addInputNode((Reference)isNull.getExpression()); } }
private boolean evaluate(IsNullCriteria criteria, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException { // Evaluate expression Object value = null; try { value = evaluate(criteria.getExpression(), tuple); } catch(ExpressionEvaluationException e) { throw new ExpressionEvaluationException(QueryPlugin.Event.TEIID30323, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30323, criteria)); } return (value == null ^ criteria.isNegated()); }
private boolean evaluate(IsNullCriteria criteria, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException { // Evaluate expression Object value = null; try { value = evaluate(criteria.getExpression(), tuple); } catch(ExpressionEvaluationException e) { throw new ExpressionEvaluationException(QueryPlugin.Event.TEIID30323, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30323, criteria)); } return (value == null ^ criteria.isNegated()); }
public void visit(IsNullCriteria isNull){ if (!isNull.isNegated() && checkForInput(isNull.getExpression())) { addInputNode((Reference)isNull.getExpression()); } }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { Expression copy = null; if(getExpression() != null) { copy = (Expression) getExpression().clone(); } IsNullCriteria criteriaCopy = new IsNullCriteria(copy); criteriaCopy.setNegated(isNegated()); return criteriaCopy; }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { Expression copy = null; if(getExpression() != null) { copy = (Expression) getExpression().clone(); } IsNullCriteria criteriaCopy = new IsNullCriteria(copy); criteriaCopy.setNegated(isNegated()); return criteriaCopy; }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { Expression copy = null; if(getExpression() != null) { copy = (Expression) getExpression().clone(); } IsNullCriteria criteriaCopy = new IsNullCriteria(copy); criteriaCopy.setNegated(isNegated()); return criteriaCopy; }
public void visit(IsNullCriteria obj) { // Check if compares are allowed if (willBecomeConstant(obj)) { return; } if(! this.caps.supportsCapability(Capability.CRITERIA_ISNULL)) { markInvalid(obj, "IsNull not supported by source"); //$NON-NLS-1$ return; } if (obj.isNegated() && !this.caps.supportsCapability(Capability.CRITERIA_NOT)) { markInvalid(obj, "Negation is not supported by source"); //$NON-NLS-1$ return; } }
public void visit(IsNullCriteria obj) { // Check if compares are allowed if(! this.caps.supportsCapability(Capability.CRITERIA_ISNULL)) { if (willBecomeConstant(obj)) { return; } markInvalid(obj, "IsNull not supported by source"); //$NON-NLS-1$ return; } if (obj.isNegated() && !this.caps.supportsCapability(Capability.CRITERIA_NOT)) { if (willBecomeConstant(obj)) { return; } markInvalid(obj, "Negation is not supported by source"); //$NON-NLS-1$ return; } }
public void visit(IsNullCriteria obj) { // Check if compares are allowed if(! this.caps.supportsCapability(Capability.CRITERIA_ISNULL)) { if (willBecomeConstant(obj)) { return; } markInvalid(obj, "IsNull not supported by source"); //$NON-NLS-1$ return; } if (obj.isNegated() && !this.caps.supportsCapability(Capability.CRITERIA_NOT)) { if (willBecomeConstant(obj)) { return; } markInvalid(obj, "Negation is not supported by source"); //$NON-NLS-1$ return; } }
@Override public void visit( IsNullCriteria obj ) { Expression expr = obj.getExpression(); appendNested(expr); append(SPACE); append(IS); append(SPACE); if (obj.isNegated()) { append(NOT); append(SPACE); } append(NULL); }
@Override public void visit( IsNullCriteria obj ) { Expression expr = obj.getExpression(); appendNested(expr); append(SPACE); append(IS); append(SPACE); if (obj.isNegated()) { append(NOT); append(SPACE); } append(NULL); }
@Override public void visit( IsNullCriteria obj ) { Expression expr = obj.getExpression(); appendNested(expr); append(SPACE); append(IS); append(SPACE); if (obj.isNegated()) { append(NOT); append(SPACE); } append(NULL); }