use of org.teiid.translator.google.visitor.SpreadsheetDeleteVisitor in project teiid by teiid.
the class TestSQLtoSpreadsheetQuery method testDeleteConversion.
private void testDeleteConversion(String sql, String expectedCriteria) throws Exception {
Delete delete = (Delete) getCommand(sql);
SpreadsheetDeleteVisitor spreadsheetVisitor = new SpreadsheetDeleteVisitor(people);
spreadsheetVisitor.visit(delete);
assertEquals(expectedCriteria, spreadsheetVisitor.getCriteriaQuery());
}
use of org.teiid.translator.google.visitor.SpreadsheetDeleteVisitor in project teiid by teiid.
the class SpreadsheetUpdateExecution method executeDelete.
private UpdateResult executeDelete() throws TranslatorException {
SpreadsheetInfo info = connection.getSpreadsheetInfo();
SpreadsheetDeleteVisitor visitor = new SpreadsheetDeleteVisitor(info);
visitor.visit((Delete) command);
checkHeaders(visitor.getWorksheetTitle());
result = connection.deleteRows(visitor.getWorksheetTitle(), visitor.getCriteriaQuery());
return result;
}
Aggregations