58 if (!$this->conn->beginTransaction())
71 throw new DataItemException(
"Attempt to rollback a previously completed transaction");
74 $this->conn->rollback();
85 throw new DataItemException(
"Attempt to commit a previously completed transaction");
88 $this->conn->commit();
static newConnection()
Returns a new connection to the database.
The DataTransaction class wraps the underlying database's transaction model.
DataTransaction()
Creates a new DataTransaciton.
getConnection()
Return the database connection for this transaction.
rollback()
Roll back any changes made during this transaction.
commit()
Commit the changes made during this transaction.