dao.addDocumentToQueue(feedEntry);
dao.close();
}
private List<SavedDocument> getFiles() throws Exception {
TransactionConnection con = new PreparedStatementStoringAndClosingTransactionConnection(description);
PreparedStatement query = con.prepareStatement("SELECT * FROM ETL.XMLFile");
ResultSet rs = query.executeQuery();
List<SavedDocument> savedDocuments = new ArrayList<SavedDocument>();
while (rs.next()) {
savedDocuments.add(new SavedDocument(rs.getString("DocumentID"),
rs.getString("XMLData"), rs.getInt("SourceFK")));
}
query.close();
rs.close();
con.release();
return savedDocuments;
}