public static AnalysisRecord createNonRecordingRecord() { return new AnalysisRecord(false, false); }
public void testDebugLog() { AnalysisRecord rec = new AnalysisRecord(false, true); assertTrue(rec.recordDebug()); rec.println("a"); //$NON-NLS-1$ rec.println("b"); //$NON-NLS-1$ String log = rec.getDebugLog(); assertEquals("a\nb\n", log); //$NON-NLS-1$ }
private static void debugDocumentInfo(String msgTag, XMLPlannerEnvironment planEnv) { planEnv.analysisRecord.println("\n"+msgTag+":============================================================================"); //$NON-NLS-1$ //$NON-NLS-2$ planEnv.analysisRecord.println("MAPPING DOCUMENT:\n" + MappingNode.toStringNodeTree(planEnv.mappingDoc)); //$NON-NLS-1$ }
public void testAnnotations() { AnalysisRecord rec = new AnalysisRecord(true, false); assertTrue(rec.recordAnnotations()); Annotation ann1 = new Annotation("cat", "ann", "res", Priority.MEDIUM); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ Annotation ann2 = new Annotation("cat2", "ann2", "res2", Priority.HIGH); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ rec.addAnnotation(ann1); rec.addAnnotation(ann2); Collection<Annotation> annotations = rec.getAnnotations(); assertEquals(2, annotations.size()); assertTrue(annotations.contains(ann1)); assertTrue(annotations.contains(ann2)); }
public PlanNode getDescriptionProperties() { PlanNode props = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(props, PROP_SELECT_COLS, this.selectSymbols); return props; }
public static AnalysisRecord createNonRecordingRecord() { return new AnalysisRecord(false, false); }
@Override public PlanNode getDescriptionProperties() { PlanNode node = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_SQL, this.updateCommands); return node; }
public static AnalysisRecord createNonRecordingRecord() { return new AnalysisRecord(false, false); }
public PlanNode getDescriptionProperties() { PlanNode node = this.root.getDescriptionProperties(); if (this.with != null) { AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_WITH, this.with); } return node; }
private AnalysisRecord getAnalysisRecord() { if (this.analysisRecord == null) { this.analysisRecord = new AnalysisRecord(requestMsg.getShowPlan() != ShowPlan.OFF, requestMsg.getShowPlan() == ShowPlan.DEBUG); } return this.analysisRecord; }
public PlanNode getDescriptionProperties() { PlanNode node = this.root.getDescriptionProperties(); if (this.with != null) { AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_WITH, this.with); } return node; }
private AnalysisRecord getAnalysisRecord() { if (this.analysisRecord == null) { this.analysisRecord = new AnalysisRecord(requestMsg.getShowPlan() != ShowPlan.OFF, requestMsg.getShowPlan() == ShowPlan.DEBUG); } return this.analysisRecord; }
public PlanNode getDescriptionProperties() { PlanNode props = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(props, PROP_SELECT_COLS, this.selectSymbols); return props; }
private AnalysisRecord getAnalysisRecord() { if (this.analysisRecord == null) { this.analysisRecord = new AnalysisRecord(requestMsg.getShowPlan() != ShowPlan.OFF, requestMsg.getShowPlan() == ShowPlan.DEBUG); } return this.analysisRecord; }
public PlanNode getDescriptionProperties() { PlanNode node = this.root.getDescriptionProperties(); if (this.with != null) { AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_WITH, this.with); } return node; }
public void compileXqueryExpression() throws QueryResolverException { this.xqueryExpression = SaxonXQueryExpression.compile(xquery, namespaces, passing, null); this.xqueryExpression.useDocumentProjection(null, new AnalysisRecord(false, false)); }
@Override public PlanNode getDescriptionProperties() { PlanNode node = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_SQL, this.updateCommands); return node; }
public void compileXqueryExpression() throws QueryResolverException { this.xqueryExpression = new SaxonXQueryExpression(xquery, namespaces, passing, null); this.xqueryExpression.useDocumentProjection(null, new AnalysisRecord(false, false)); }
@Override public PlanNode getDescriptionProperties() { PlanNode node = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(node, AnalysisRecord.PROP_SQL, this.updateCommands); return node; }
public PlanNode getDescriptionProperties() { PlanNode props = super.getDescriptionProperties(); AnalysisRecord.addLanaguageObjects(props, PROP_SELECT_COLS, this.selectSymbols); return props; }