Type | Name | Description | Notes |
Int | eventCount | Contains the number of events recorded in the transaction manager. Each event corresponds to one of the following IliTable operations:
insertRow
updateRow
deleteRow
moveRow
exchangeRows
| read-only |
Boolean | accept() | Accepts all work done since the most recent call to accept , cancel , or start . This typically involves having all two-tier tables propagate updates to their remote storage manager. If successful, the event count is reset to 0 and true is returned. Otherwise, the event count remains unchanged and false is returned. Note that if a two-tier table (such as an IliSQLTable ) is involved in one or more of the events, a rollback should be issued by the user to its SQL session or else the state of the database transaction may become inconsistent with the state of the IliSQLTable object. | |
Void | addErrorSink(Object sink) | Adds an error sink to the transaction manager. When an error occurs during accept or cancel processing, it will be forwarded to this error sink. The sink parameter can be one of the following:
| |
Boolean | cancel() | Cancels all work done since the most recent call to accept , cancel , or start . This typically involves reverting the IliTable objects to the state they had at that point in time. If successful, the event count is reset to 0 and true is returned. Otherwise, the event count remains unchanged and false is returned. | |
IliTable | getEventTable(Int idx) | Returns the IliTable object from which the event at position idx originates or NULL if idx is < 0 or >= EventCount() . | |
IliTableEventType | getEventType(Int idx) | Returns the type of the event at position idx or UndefinedEvent if idx is < 0 or >= EventCount() . The type can be one of the following:
UndefinedEvent
InsertRowEvent
UpdateRowEvent
DeleteRowEvent
MoveRowEvent
ExchangeRowsEvent
| |
Boolean | isStarted() | Returns true if the transaction manager has been started. | |
Void | removeErrorSink(Object sink) | Removes an error sink. | |
Void | start() | Starts the transaction manager. | |
Void | stop() | Stops the transaction manager. | |