use of org.teiid.olingo.ComplexReturnType in project teiid by teiid.
the class CrossJoinResult method addRow.
@Override
public void addRow(ResultSet rs) throws SQLException {
ArrayList<ComplexReturnType> row = new ArrayList<ComplexReturnType>();
Entity entity = EntityCollectionResponse.createEntity(rs, this.documentNode, this.baseURL, null);
row.add(new ComplexReturnType(this.documentNode.getName(), this.documentNode.getEdmEntityType(), entity, this.documentNode.hasExpand()));
for (DocumentNode node : this.documentNode.getSibilings()) {
Entity sibiling = EntityCollectionResponse.createEntity(rs, node, this.baseURL, null);
row.add(new ComplexReturnType(node.getName(), this.documentNode.getEdmEntityType(), sibiling, ((CrossJoinNode) node).hasExpand()));
}
this.out.add(row);
}
Aggregations