Sunday, 13 December 2015

Java Lab@home 15

1.Take the existing Employee DAO Memory application and refactor thecode to use JDBC instead. The solution from the "Exceptions and Assertions" lesson has beenrenamed to EmployeeDAOJDBC. You will need to create an EmployeeDAOJDBCImpl class toreplace the EmployeeDAOMemoryImpl class, and modify the EmployeeDAOFactory toreturn an instance of your new implementation class instead of the Memory version.


Ans   CLICK HERE



2.Take the existing Employee DAO Memory application and refactor thecode to use JDBC instead. The solution from the "Exceptions and Assertions" lesson has beenrenamed to EmployeeDAOJDBC. You will need to create an EmployeeDAOJDBCImpl class toreplace the EmployeeDAOMemoryImpl class, and modify the EmployeeDAOFactory toreturn an instance of your new implementation class instead of the Memory version.


Ans   CLICK HERE




3.Peter needs to create an application that will enable the staff of City Library to update the details of the publishers according to their ID. For this, the application should allow the staff member to select the field and update its value. Help Peter to achieve the preceding requirement. Prerequisite: To perform this exercise, you need to ensure that the Publisher table with appropriate values exists in the Library database. If the database and the table with appropriate values do not exist, you need to create the Library database, and then execute scripts in the Create_Publisher.txt and Insert_Publisher.txt files.


Ans  CLICK HERE

7 comments: