Question: Exercise: Revise the code for using transactions in the Payable Entry application In this exercise, you ll modify the way transactions are used by the
Exercise: Revise the code for using transactions in the Payable Entry application
In this exercise, youll modify the way transactions are used by the Payable Entry application that has been presented in this chapter. That will give you some practice working with transactions.
Open the Payable Entry application in your Chapter directory.
Review the code in the PayableDB class that implements the use of transactions. Note that it uses just one command object for three different types of SQL statements, so the properties of the command have to be changed each time a new type of SQL statement is executed.
Modify the code in the PayableDB class so it uses a separate command object for each type of SQL statement that is executed, but still implements the use of transactions. You may need to refer back to Chapter to refresh your memory on how to associate a transaction between commands.
Test your modifications.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
