Answered You can hire a professional tutor to get the answer.
Exercise 21-2 Use a Derby database with the Product Ma inte na nce application This uses netbeans primarily and is from murachs java programming This...
Exercise 21-2 Use a Derby database with the Product Maintenance application
This uses netbeans primarily and is from murachs java programming
This exercise has you enhance a Product Maintenance application that uses the Derby database described in chapter 20 to store the product data. To work with that data, this application uses the ProductDB class that's presented in this chapter.
Review the code and test the application
1: Open the project named ch21_ex2_ProductMaint that's in the ex_starts directory.
2: Open the DAOFactory class. Note that the getProductDAO method has been changed so this application uses the methods in the ProductDB class to work with the Derby database.
3: Open the ProductDB class and review its code. This is the code that's presented in this chapter.
4: Open the ProductMaintApp class and review its code. Then, run this application. It should work the same as it did earlier in this book, but now it stores the data in a Derby database.
Add a disconnect method to the ProductDB class
5: Add a public method to the ProductDB class named disconnect that shuts down the Derby database engine and returns a boolean value that indicates if