August 1999
Intermediate to advanced
1488 pages
72h 53m
English
database.beginTransaction()
The beginTransaction() method of the database 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 setting of the commit flag when the database object instance is created.
Note
You cannot have nested transactions.
Listing 8.38 creates a connection to an Oracle database. After the connection has been verified, the beginTransaction() method is called and a SQL query is performed. The results are ...
Read now
Unlock full access