| Interface | osid.transaction.TransactionSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
The transaction session is coordinate transactions. A
transaction session allows for | ||
| Method | add | ||
| Description |
Adds a Transaction to be managed by this transaction service. | ||
| Parameters | osid.transaction.Transaction | transaction | the transaction to add |
| Errors | ALREADY_EXISTS | transaction already added | |
| ILLEGAL_STATE | this transaction has ended | ||
| INVALID_ARGUMENT | the session doesn't support transactions | ||
| NULL_ARGUMENT | a null argument provided | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | commit | ||
| Description |
Commits the transaction and makes the state change(s)
visible. This transaction is effectively closed and the
only valid method that may be invoked is | ||
| Errors | ILLEGAL_STATE | this transaction has been committed or aborted | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
| ||
| Method | abort | ||
| Description |
Cancels this transaction, rolling back the queue of
operations since the start of this transaction. This
transaction is effectively closed and the only valid
method that may be invoked is | ||
| Errors | ILLEGAL_STATE | this transaction has been committed or aborted | |
| Compliance | mandatory | This method must be implemented. | |
| Provider Notes |
Invokes | ||
| Method | getState | ||
| Description |
Gets the current state of this transaction. | ||
| Return | osid.transaction.TransactionState | the current state of this transaction | |
| Errors | ILLEGAL_STATE | this transaction has been committed or aborted | |
| Compliance | mandatory | This method must be implemented. | |