super(dbConn, row, tableName);
}
@Override
public void execute() {
XString insertQry = null;
try {
insertQry = new XString("INSERT INTO " + this.getTableName() + " (");
ArrayList<Object> values = new ArrayList<Object>();
XString valuesQry = new XString("VALUES (");
for (int i = 0; i < this.getRow().getColumnCount(); i++) {
String columnName = this.getRow().getColumnName(i);
insertQry.assertText("(", ", ");
insertQry.addText(columnName);
valuesQry.assertText("(", ", ");
valuesQry.addText("?");
values.add(this.getVal(columnName).getValue());
}
insertQry.addText(") ");
insertQry.addText(valuesQry);
insertQry.addText(")");