Type | Name | Description | Notes |
Int | columnsCount | Contains the number of values in this table buffer. This is the same as the number of columns in the underlying table. | read-only |
IliTable | table | Contains the table to which this table buffer belongs. | read-only |
Void | clear() | Sets all values to null and changes their state to "not modified". | |
IliTableBufferValue | getValue(String colname) | Returns the value object that corresponds to column named colname or null if no such column exists in the underlying table. | |
IliTableBufferValue | getValueAt(Int colno) | Returns the value object at position colno (in the underlying table) which must be >= 0 and < columnsCount . Returns null if colno is out of bounds. | |
Boolean | isModified() | Returns true if at least one value has been modified since the table buffer was obtained, since the last time the clear method was called, or the last time the rowToBuffer method was called, whichever is more recent. | |
Boolean | isNull() | Returns true if all values are null . | |
Void | modifyAll() | Changes the state of all value objects to "modified" as if they had been assigned, but leaves the values themselves unchanged. This is useful if you want to copy rows from one table to another as in the following code function:
function CopyRows(tableA, tableB) {
var buffer = tableA.getBuffer();
for (var rowno = 0; rowno < tableA.rowsCount; ++rowno) {
buffer.rowToBuffer(rowno);
buffer.modifyAll();
tableB.appendRow(buffer);
}
}
Without the call to modifyAll in this function, the buffer would not provide any values to the appendRow method since only modified values are taken into account by this method. | |
Void | rowToBuffer(Int rowno) | Copies the values in the row rowno in the underlying table to the table buffer. In addition the state of the value in the table buffer is set to "not modified". | |