Table class.
More...
#include <ilviews/dataccess/tblhook.h>
Inherited by IliDsUsageHook, IliTableContext, and IliTableGraphicHook.
Table class.
Library: dataccess
The IliTableHook
class can be used to monitor updates undergone by instances of the IliSchema
or IliTable
classes (or of their subclasses). The IliSchema::addHook
member function installs a table hook. To install a hook on a table or schema object, you first define a subclass of the IliTableHook
class, and override some, or all of its virtual member functions. Instances of this new class can then be created and added to the table or schema object. Be aware that the virtual member functions of a table hook are called in very specific contexts that are elaborated in the description of each member function. Consequently, great care should be taken not to call, directly or indirectly, other member functions on the underlying table that would completely change the context in which the member function was called. For example, you should not call the IliTable::deleteRow
member function from inside a rowFetched
table hook virtual member function.
- See also
- IliErrorMessage, IliSchema, IliTable
◆ cellChanged()
virtual void IliTableHook::cellChanged |
( |
IlInt |
rowno, |
|
|
IlInt |
colno |
|
) |
| |
|
virtual |
Called just after the cell has changed.
If more than one value has changed in a row, it is likely that the rowChanged
member function will be called, instead of this member function.
- Parameters
-
rowno | The row position. |
colno | The column position. |
◆ columnChanged()
virtual void IliTableHook::columnChanged |
( |
IlInt |
colno | ) |
|
|
virtual |
Called when a column has changed.
- Parameters
-
colno | The column position. |
◆ columnDeleted()
virtual void IliTableHook::columnDeleted |
( |
IlInt |
colno | ) |
|
|
virtual |
Called just after a column has been deleted.
- Parameters
-
colno | The column position. |
◆ columnInserted()
virtual void IliTableHook::columnInserted |
( |
IlInt |
colno | ) |
|
|
virtual |
Called when a new column is inserted.
- Parameters
-
colno | The column position. |
◆ columnMoved()
virtual void IliTableHook::columnMoved |
( |
IlInt |
src, |
|
|
IlInt |
dest |
|
) |
| |
|
virtual |
Called just after a column has been moved.
- Parameters
-
src | The origin column position. |
dest | The destination column position. |
◆ columnToBeDeleted()
virtual void IliTableHook::columnToBeDeleted |
( |
IlInt |
colno | ) |
|
|
virtual |
Called just before a column is deleted.
- Parameters
-
colno | The column position. |
◆ endOfBatch()
virtual void IliTableHook::endOfBatch |
( |
| ) |
|
|
virtual |
Called to terminate a series of updates to the IliSchema
or IliTable
objects.
Calls to startOfBatch
and endOfBatch
may be nested.
◆ raiseError()
Verbose Called each time an error occurs.
- Parameters
-
◆ rowChanged()
virtual void IliTableHook::rowChanged |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just after a row has been changed.
- Parameters
-
◆ rowDeleted()
virtual void IliTableHook::rowDeleted |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just after a row has been deleted.
- Parameters
-
◆ rowFetched()
virtual void IliTableHook::rowFetched |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just after a new row has been fetched from a remote database and inserted.
In this case, the rowInserted
member function will also be called.
- Parameters
-
◆ rowInserted()
virtual void IliTableHook::rowInserted |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just after a new row has been inserted.
- Parameters
-
◆ rowMoved()
virtual void IliTableHook::rowMoved |
( |
IlInt |
src, |
|
|
IlInt |
dest |
|
) |
| |
|
virtual |
Called just after a row has been moved.
- Parameters
-
src | The origin row position. |
dest | The destination row position. |
◆ rowsExchanged()
virtual void IliTableHook::rowsExchanged |
( |
IlInt |
rowno1, |
|
|
IlInt |
rowno2 |
|
) |
| |
|
virtual |
Called just after a row has been exchanged with another row.
- Parameters
-
rowno1 | The first row position. |
rowno2 | The second row position. |
◆ rowsFetched()
virtual void IliTableHook::rowsFetched |
( |
IlInt |
fromRow, |
|
|
IlInt |
toRow |
|
) |
| |
|
virtual |
Called when many consecutive rows are fetched at once.
By default, this virtual member function repeatedly calls rowFetched
with each index between fromRow
and toRow
.
- Parameters
-
fromRow | The first row position. |
toRow | The last row position (inclusive). |
◆ rowsInserted()
virtual void IliTableHook::rowsInserted |
( |
IlInt |
fromRow, |
|
|
IlInt |
toRow |
|
) |
| |
|
virtual |
Called when many consecutive rows are inserted at once.
By default, this virtual member function repeatedly calls rowInserted
with each row index.
- Parameters
-
fromRow | The first row. |
toRow | The last row (inclusive). |
◆ rowToBeChanged()
virtual void IliTableHook::rowToBeChanged |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just before a row is changed.
- Parameters
-
◆ rowToBeDeleted()
virtual void IliTableHook::rowToBeDeleted |
( |
IlInt |
rowno | ) |
|
|
virtual |
Called just before a row is deleted.
- Parameters
-
◆ startOfBatch()
virtual void IliTableHook::startOfBatch |
( |
| ) |
|
|
virtual |
Called at the start of a series of updates to the IliSchema
or IliTable
object.
A call to this virtual member function will be followed by a call to the endOfBatch
virtual member function.