Framework
3.9
|
The DataTransaction class wraps the underlying database's transaction model. More...
Public Member Functions | |
DataTransaction () | |
Creates a new DataTransaciton. More... | |
rollback () | |
Roll back any changes made during this transaction. More... | |
commit () | |
Commit the changes made during this transaction. More... | |
getConnection () | |
Return the database connection for this transaction. More... | |
Public Attributes | |
$conn | |
$tx | |
The DataTransaction class wraps the underlying database's transaction model.
DataTransactions automatically start an isolated database transaction upon creation. The DataTransaction class can then be used with Query and DataItem objects. Each DataTransaction instance maintains its own dedicated connection to the database.
Definition at line 47 of file transaction.inc.
DataTransaction::commit | ( | ) |
Commit the changes made during this transaction.
Definition at line 81 of file transaction.inc.
DataTransaction::DataTransaction | ( | ) |
Creates a new DataTransaciton.
Definition at line 55 of file transaction.inc.
DataTransaction::getConnection | ( | ) |
Return the database connection for this transaction.
Definition at line 96 of file transaction.inc.
DataTransaction::rollback | ( | ) |
DataTransaction::$conn |
Definition at line 49 of file transaction.inc.
DataTransaction::$tx |
Definition at line 50 of file transaction.inc.