// column to the end of it.
//
if (this.columnList.get(0).getActualSize() > 0) {
this.columnList.get(0).concat(", ");
}
this.columnList.get(0).concat(new TextData().replaceParameters("t%1.%2", new IntegerData(tableIndex), columnName));
}
else if ((this.getOperation() == BusinessQuery.OP_INSERT) || (this.getOperation() == BusinessQuery.OP_UPDATE)) {
if (this.columnList.get(tableIndex-1).getActualSize() > 0) {
this.columnList.get(tableIndex-1).concat(", ");
}
//
// Add this column to the list for the associated table.
//
this.columnList.get(tableIndex-1).concat(columnName);
if (this.getOperation() == BusinessQuery.OP_UPDATE) {
//
// For update the column list is the set clause and we need to add
// the '=' and the placeholder to which the value will be bound.
//
this.columnList.get(tableIndex-1).concat("=?");
}
//
// Add the value to the data list. For insert these values will be
// bound to the values clause. For update they will be bound to the
// placeholders we created in the set clause.
//
if (value == null) {
throw new Error(Error.SQL_NEED_VALUE, "AddColumn", this).getException();
}
else {
this.getData().get(tableIndex-1).getValues().add(value);
}
}
else {
throw new Error(Error.SQL_ILLEGAL_FOR_OPERATION, "AddColumn", this, new IntegerData(this.getOperation()), Error.qq_Resolver.cERROR_METHODNAME_ORIGINATOR_PARAM1).getException();
}
}