|
OCILIB (C and C++ Driver for Oracle)
4.0.0
|
Oracle Transaction object. More...
#include <ocilib.hpp>
Inherits ocilib::HandleHolder< OCI_Transaction * >.
Public Types | |
| enum | TransactionFlagsValues { , New = OCI_TRS_NEW, Tight = OCI_TRS_TIGHT, Loose = OCI_TRS_LOOSE, ReadOnly = OCI_TRS_READONLY, ReadWrite = OCI_TRS_READWRITE, Serializable = OCI_TRS_SERIALIZABLE } |
| Transaction flags enumerated values. More... | |
| typedef Flags < TransactionFlagsValues > | TransactionFlags |
| Transaction flags. More... | |
Public Member Functions | |
| Transaction (const Connection &connection, unsigned int timeout, TransactionFlags flags, OCI_XID *pxid=NULL) | |
| Create a new global transaction or a serializable/read-only local transaction. More... | |
| void | Prepare () |
| Prepare a global transaction validation. | |
| void | Start () |
| Start global transaction. | |
| void | Stop () |
| Stop current global transaction. | |
| void | Resume () |
| Resume a stopped global transaction. | |
| void | Forget () |
| Cancel the prepared global transaction validation. | |
| TransactionFlags | GetFlags () const |
| Return the transaction mode. More... | |
| unsigned int | GetTimeout () const |
| Return the transaction Timeout. | |
Oracle Transaction object.
This class wraps the OCILIB object handle OCI_Transaction and its related methods
Definition at line 2195 of file ocilib.hpp.
Transaction flags.
Possible values are Transaction::TransactionFlagsValues
Definition at line 2230 of file ocilib.hpp.
Transaction flags enumerated values.
Definition at line 2206 of file ocilib.hpp.
|
inline |
Create a new global transaction or a serializable/read-only local transaction.
| connection | - Connection |
| timeout | - Time that a transaction stays inactive after being stopped |
| flags | - Transaction flags |
| pxid | - pointer to a global transaction identifier structure |
Definition at line 1300 of file ocilib_impl.hpp.
References ocilib::Check(), OCI_TransactionCreate(), and OCI_TransactionFree().
|
inline |
Return the transaction mode.
Definition at line 1335 of file ocilib_impl.hpp.
References ocilib::Check(), and OCI_TransactionGetMode().