@Test public void testWithExternalChild() throws Exception { helpExecute("select * from model.G4", "FROM pm1.G2 g2_1"); helpExecute("select * from model.G4 as p", "FROM pm1.G2 g2_0"); helpExecute("select * from model.G4 where G2_e1 = 2", "FROM pm1.G2 g2_1 WHERE g2_1.e1 = 2"); IckleConversionVisitor visitor = helpExecute("select * from model.G4 as p where p.G2_e1 = 2", "FROM pm1.G2 g2_0 WHERE g2_0.e1 = 2"); assertArrayEquals(new String[] { "pm1.G2/pm1.G4/e1", "pm1.G2/pm1.G4/e2", "e1" }, visitor.getProjectedDocumentAttributes().keySet().toArray(new String[2])); }
public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); Table getParentTable(); NamedTable getParentNamedTable(); Table getQueryTable(); NamedTable getQueryNamedTable(); boolean isNestedOperation(); @Override void visit(NamedTable obj); boolean isPartOfPrimaryKey(String columnName); @Override void visit(Join obj); @Override void visit(Limit obj); @Override void visit(Select obj); @Override void visit(Comparison obj); @Override void visit(ColumnReference obj); @Override void visit(DerivedColumn obj); String getQuery(); Integer getRowLimit(); Integer getRowOffset(); Map<String, Class<?>> getProjectedDocumentAttributes(); }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); Table getParentTable(); NamedTable getParentNamedTable(); Table getQueryTable(); NamedTable getQueryNamedTable(); boolean isNestedOperation(); @Override void visit(NamedTable obj); boolean isPartOfPrimaryKey(String columnName); @Override void visit(Join obj); @Override void visit(Limit obj); @Override void visit(Select obj); @Override void visit(Comparison obj); @Override void visit(ColumnReference obj); @Override void visit(DerivedColumn obj); String getQuery(); Integer getRowLimit(); Integer getRowOffset(); Map<String, Class<?>> getProjectedDocumentAttributes();  }