@Test public void testParseClone() throws QueryParserException { TriggerAction ta = (TriggerAction)QueryParser.getQueryParser().parseProcedure("for each row begin atomic if (\"new\" is not distinct from \"old\") raise sqlexception ''; end", true); assertEquals("FOR EACH ROW\nBEGIN ATOMIC\nIF(\"new\" IS NOT DISTINCT FROM \"old\")\nBEGIN\nRAISE SQLEXCEPTION '';\nEND\nEND", ta.toString()); QueryParser.getQueryParser().parseProcedure(ta.toString(), true); TriggerAction clone = ta.clone(); assertEquals(ta.toString(), clone.toString()); UnitTestUtil.helpTestEquivalence(0, ta, ta.clone()); }
public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; }
IsDistinctCriteria extends PredicateCriteria implements Negatable { public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; } }
IsDistinctCriteria extends PredicateCriteria implements Negatable { public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; } IsDistinctCriteria(); }
IsDistinctCriteria extends PredicateCriteria implements Negatable { public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; } IsDistinctCriteria(); void setLeftRowValue(LanguageObject leftRowValue); void setRightRowValue(LanguageObject rightRowValue); LanguageObject getLeftRowValue(); LanguageObject getRightRowValue(); boolean isNegated(); void setNegated(boolean negationFlag); @Override void negate(); void acceptVisitor(LanguageVisitor visitor); int hashCode(); boolean equals(Object obj); Object clone(); }
IsDistinctCriteria extends PredicateCriteria implements Negatable { public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; } IsDistinctCriteria(); void setLeftRowValue(LanguageObject leftRowValue); void setRightRowValue(LanguageObject rightRowValue); LanguageObject getLeftRowValue(); LanguageObject getRightRowValue(); boolean isNegated(); void setNegated(boolean negationFlag); @Override void negate(); void acceptVisitor(LanguageVisitor visitor); int hashCode(); boolean equals(Object obj); Object clone();  }