August 1999
Intermediate to advanced
1488 pages
72h 53m
English
connection.beginTransaction()
The beginTransaction() method of the Connection object begins a new SQL transaction. This groups all the actions against the database together until the user exits the page or either the commitTransaction() or rollbackTransaction() methods are called. In the instance of the user exiting the page, the transaction is either committed or rolled back, depending on the setting of the commit flag when the DbPool object instance is created.
Note
You cannot have nested transactions.
Listing 8.12 creates a pool of connections to an Oracle database and pulls one of the connections from the pool. After the connection has been verified, the beginTransaction() ...
Read now
Unlock full access