Type | Name | Description | Notes |
Boolean | fetchCompleted | If this is a two-tier table, this property contains true if all remote rows that resulted from the execution of the last call to the select method have been fetched and stored in the local row cache. | read-only |
Int | parametersCount | Contains the number of parameters defined for this table. | read-only |
IliTablePropertyManager | properties | Contains the default property manager for this table. | read-only |
Boolean | readOnly | Contains true if the table is read-only. | |
Int | rowsCount | Contains the number of rows in the local row cache. For a one-tier table, this is the total rows count. For a two-tier table, this is the number of rows that have been fetched from the remote database until now. It may be less than the total rows count, which is unknown unless the fetchAll method is called or all rows have otherwise been fetched. | read-only |
Boolean | selectDone | If this is a two-tier table, this property contains true if the select method was called at least once since the table was created or read (recreated) from a resource file. Otherwise, for a one-tier table, this property is always false . | read-only |
IliTransactionManager | transactionManager | Contains the transaction manager managing this table or null if the table is not managed by a transaction manager. Initially, this property is null . | Read-only |
String | transactionManagerName | Contains the name of the transaction manager that manages the table. It contains null if the table is not managed by a transaction manager or if it is managed by an anonymous transaction manager. A new transaction manager is implicitly created when a name is assigned to this property and no existing transaction manager has this name. | |
Void | addErrorSink(Object sink) | Adds an error sink to the table. When an error occurs, it will be forwarded to this error sink.
The sink parameter can be either:
| |
Int | appendRow(IliTableBuffer buffer) | Inserts a new row whose values are given in the buffer parameter. The row is inserted after the last existing row and its index is returned if successful. The value of -1 is returned if it fails. See the insertRow method for more information on inserting into a table. | |
Int | appendRowInCache(IliTableBuffer buffer) | This method is similar to the appendRow method except that it only appends the row in the local row cache. | |
Variant | at(Int rowno, Int colno) | Returns the value in the row positioned at rowno for the column positioned at colno . The exact type of the return value depends on the column data type. The following expressions are equivalent:
table.at(rowno, table.EMPNAME.index)
table.EMPNAME.at(rowno)
| |
Boolean | applyQueryMode(IliTable queryTable) | If query mode is supported, this method applies the query specified by the conditions contained in the =queryTable= parameter, which is expected to be a table obtained by calling the makeQueryTable method. This method returns true if successful. | |
Void | clearRows() | Deletes all rows in the local row cache. | |
Boolean | deleteRow(Int rowno) | Deletes the row at position rowno . Returns true if successful and false if for any reason the row could not be deleted.
With a two-tier table, the row is deleted from the remote database as well as from the local row cache. | |
Boolean | deleteRowInCache(Int rowno) | This method is similar to the deleteRow method except that it only deletes the row from the local row cache. | |
Int | fetchAll() | Fetches all remaining rows and stores them in the local row cache. This method returns the number of rows effectively fetched. | |
IliTableBuffer | getBuffer() | Returns a new table buffer suitable to be used in conjunction with the updateRow , insertRow , updateRowInCache, and insertRowInCache methods. | |
IliTablePropertyManager | getNamedPropertyManager(String name) | Returns the property manager named name if it exists and null otherwise. | |
Int | getNamedPropertyManagerCount() | Returns the number of named property managers. | |
IliParameter | getParameter(String paramname) | Returns the parameter named paramname . The null value is returned if no such object exists. | |
IliParameter | getParameterAt(Int paramno) | Returns the parameter positioned at paramno which must be >= 0 and < parametersCount . The null value is returned if paramno is out of bounds. | |
String | getPropertyManagerNameAt(Int idx) | Returns the name of the named property manager positioned at idx or null if idx < 0 or idx >= getNamedPropertyManagerCount() . | |
Boolean | insertRow(Int rowno, IliTableBuffer buffer) | Inserts a new row at position rowno with values taken from the buffer parameter. Only the modified values in buffer are used to initialize the row. (See IliTableBufferValue::isModified method.) The other values are replaced by null values. With a two-tier table, the row is inserted in the remote database as well as in the local cache. Constraints such as non nullable columns and primary key columns are first checked and the insert is carried out only if these constraints are satisfied. This method returns true if the row was successfully inserted and false otherwise. | |
Boolean | insertRowInCache(Int rowno, IliTableBuffer buffer) | This method is similar to the insertRow method except that it only inserts the row in the local row cache. | |
Boolean | isQueryModeSupported() | Returns true if the table supports query mode. | |
IliTable | makeQueryTable() | If query mode is supported, this method creates and returns a memory table having the same number of columns as the original table. The returned memory table columns are all of the String type. | |
Boolean | moveRow(Int from, Int to) | Moves the row at position from to the position to . This method returns true if the row was successfully moved and false otherwise. With a two-tier table, the row is deleted from the remote database as well as from the local row cache. | |
Boolean | moveRowInCache(Int from, Int to) | This method is similar to the moveRow method except that it moves only the row in the local row cache. | |
IliTablePropertyManager | newNamedPropertyManager(String name) | Creates and returns a new named property manager. | |
Boolean | refreshAndLockRow(Int rowno) | If this is a two-tier table, this method re-reads the row positioned at rowno from the remote database. In addition, if the remote database supports it, the remote row is locked so that other users cannot modify or delete it as long as the lock is held. The means by which the lock can be released is not specified by the IliTable class. It is left to the discretion of subclasses (see the IliSQLTable class).This method returns true if the row was successfully refreshed and remotely locked. | |
Boolean | refreshRow(Int rowno) | If this is a two-tier table, this method re-reads the row positioned at rowno from the remote database. Returns true if successful and false otherwise. | |
Void | removeErrorSink(Object sink) | Removes an error sink. | |
Void | removeNamedPropertyManager(String name) | Removes the property manager named name . | |
Boolean | select() | If for a two-tier table, this method first clears the local row cache and queries the database to obtain a new set of rows. Whether these rows are immediately fetched and stored in the local row cache or if they are kept in the remote database for later retrieval is left to the discretion of the subclass of IliTable being used. It then returns true if successful and false otherwise. If for a one-tier table, this method does nothing and returns false . | |
Boolean | updateRow(Int rowno, IliTableBuffer buffer) | Changes the row at position rowno to the values in the buffer parameter. Only the modified values in the buffer are used to change the row, other values are left unchanged. (See IliTableBufferValue::isModified method.) With a two-tier table, the remote row is updated as well as the row in the local cache. Constraints such as non nullable columns and primary key columns are first checked and the update is carried out only if these constraints are satisfied. This method returns true if the row was successfully updated and false otherwise. | |
Boolean | updateRowInCache(Int rowno, IliTableBuffer buffer) | This method is similar to the updateRow method except that it only updates the row in the local row cache. | |