public class TableResultSet.RowBuilder extends Object
You can use the setColumnValue(Object columnValue) method to set values for columns in sequence,
or use the setColumnValue(String columnName, Object columnValue) method to set a value for a specified
column.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
TableResultSet.RowBuilder |
setColumnValue(Object columnValue) |
Sets a value for a column in the current row.
|
TableResultSet.RowBuilder |
setColumnValue(String columnName,
Object columnValue) |
Sets a value for a specified column in the current row.
|
public TableResultSet.RowBuilder setColumnValue(Object columnValue)
This method is used to set a value for the column next to the column whose value has been setin the previous call of this method. If you call this method for the first time, the value of the first column will be set. The column sequence is the same as that specified during the result set construction.
columnValue - Indicates the column value to set.RowBuilder object.ResultSetIndexOutOfRangeException - Throws this exception if the maximum number of columns has
been reached.public TableResultSet.RowBuilder setColumnValue(String columnName, Object columnValue)
If the name of the specified column is not contained in the result set, the specified value will be ignored. The column index remains unchanged after a value is set for the specified column.
columnName - Indicates the name of the specified column.columnValue - Indicates the value to be set for the specified column.RowBuilder object.