public void testDefect15870() { Option opt1 = new Option(); opt1.setNoCache(true); Option opt2 = (Option) opt1.clone(); UnitTestUtil.helpTestEquivalence(0, opt1, opt2); }
protected void copyMetadataState(Command copy) { if(this.getExternalGroupContexts() != null) { copy.externalGroups = this.externalGroups.clone(); } if(this.tempGroupIDs != null) { copy.setTemporaryMetadata(this.tempGroupIDs.clone()); } copy.plan = this.plan; if (this.correlatedReferences != null) { copy.correlatedReferences = this.correlatedReferences.clone(); } if(this.getOption() != null) { copy.setOption( (Option) this.getOption().clone() ); } copy.cacheHint = this.cacheHint; copy.sourceHint = this.sourceHint; }
protected void copyMetadataState(Command copy) { if(this.getExternalGroupContexts() != null) { copy.externalGroups = this.externalGroups.clone(); } if(this.tempGroupIDs != null) { copy.setTemporaryMetadata(this.tempGroupIDs.clone()); } copy.plan = this.plan; if (this.correlatedReferences != null) { copy.correlatedReferences = this.correlatedReferences.clone(); } if(this.getOption() != null) { copy.setOption( (Option) this.getOption().clone() ); } copy.cacheHint = this.cacheHint; copy.sourceHint = this.sourceHint; }
if (mergedOption != null && mergedOption == parentCommand.getOption()) { mergedOption = (Option) mergedOption.clone();
if (mergedOption != null && mergedOption == parentCommand.getOption()) { mergedOption = (Option) mergedOption.clone();
public void testClone() { Option opt1 = new Option(); opt1.addDependentGroup("abc"); //$NON-NLS-1$ opt1.addNotDependentGroup("xyz"); //$NON-NLS-1$ opt1.addNoCacheGroup("abc"); //$NON-NLS-1$ Option opt2 = (Option) opt1.clone(); UnitTestUtil.helpTestEquivalence(0, opt1, opt2); }
protected void copyMetadataState(Command copy) { if(this.getExternalGroupContexts() != null) { copy.externalGroups = (GroupContext)this.externalGroups.clone(); } if(this.tempGroupIDs != null) { copy.setTemporaryMetadata(this.tempGroupIDs.clone()); } copy.setIsResolved(this.isResolved()); copy.plan = this.plan; if (this.correlatedReferences != null) { copy.correlatedReferences = this.correlatedReferences.clone(); } if(this.getOption() != null) { copy.setOption( (Option) this.getOption().clone() ); } copy.cacheHint = this.cacheHint; copy.sourceHint = this.sourceHint; }
query.setOption(nested.getOption()!=null?(Option) nested.getOption().clone():null); from.getClauses().clear(); SubqueryFromClause sqfc = new SubqueryFromClause(inlineGroup.getName());
query.setOption(nested.getOption()!=null?(Option) nested.getOption().clone():null); from.getClauses().clear(); SubqueryFromClause sqfc = new SubqueryFromClause(inlineGroup.getName());
query.setOption(nested.getOption()!=null?(Option) nested.getOption().clone():null); from.getClauses().clear(); SubqueryFromClause sqfc = new SubqueryFromClause(inlineGroup.getName());