Append the string containing the SQL insert string for the given table.
SQLCall call = new SQLCall();
call.returnNothing();
Writer writer = new CharArrayWriter(100);
try {
writer.write("DELETE ");
writer.write("FROM ");
writer.write(getTable().getQualifiedName());
if (getWhereClause() != null) {
writer.write(" WHERE ");
ExpressionSQLPrinter printer = new ExpressionSQLPrinter(session, getTranslationRow(), call, false);
printer.setWriter(writer);
printer.printExpression(getWhereClause());
}
call.setSQLString(writer.toString());
} catch (IOException exception) {
throw ValidationException.fileError(exception);
}
return call;