throw new D2RQException(ex);
}
}
private void execute() {
MutableRelation newRelation = new MutableRelation(downloadMap.getRelation());
NodeMaker x = downloadMap.nodeMaker().selectNode(Node.createURI(uri), newRelation);
// URI didn't fit the node maker
if (x.equals(NodeMaker.EMPTY)) return;
Set<ProjectionSpec> requiredProjections = new HashSet<ProjectionSpec>();
requiredProjections.add(downloadMap.getContentDownloadColumn());
requiredProjections.addAll(mediaTypeValueMaker.projectionSpecs());
newRelation.project(requiredProjections);
newRelation.limit(1);
Relation filteredRelation = newRelation.immutableSnapshot();
SelectStatementBuilder builder = new SelectStatementBuilder(filteredRelation);
String sql = builder.getSQLStatement();
int contentColumn = builder.getColumnSpecs().indexOf(downloadMap.getContentDownloadColumn()) + 1;
db = filteredRelation.database();
Connection conn = db.connection();