Question: 1 . Create Java project Week 0 2 DBProcess. Create DBProcessPart 1 . java to demonstrate a console data display by passing args into a

1. Create Java project Week02DBProcess. Create DBProcessPart1.java to demonstrate a console data display by passing args into a program. The project must include the Database folder in your project. Do this by copying using file explorer and refreshing the project in Eclipse. The program needs the database import statements (as shown in DBExamples1): import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement;
2. DBProcessPart1.java must have the following methods: main, LoadListFromDatabase, and OpenDatabaseConnection. (25 points)
a. main: This accepts the incoming args, checks for missing args, and calls other methods.
b. LoadListFromDatabase: This loads the data from the table. Load table TEmployees from the dbHCM database. You need to pass args using Run Configurations in Eclipse. Be sure to provide documentation in the comments on the args you are passing. Console output must look like this:
Table: TEmployees ID: 1 FirstName: Jill
Table: TEmployees ID: 2 FirstName: Jack
Table: TEmployees ID: 3 FirstName: Jerry
Yes! We processed the list
c. OpenDatabaseConnection: This opens the database connection for dbHCM.
3. Be sure the program checks for error processing. (20 points) Send errors for at least the following:
a. if the user cannot connect to the database
b. if the table does not exist
c. if the user does not pass parameters into the program/if the program does not receive the correct number of args (The args are getting passed in the Run Configuration for testing purposes. However, the program still needs to check the number of args.) The error message must be this: Since you did not pass your table, primary key, and column cannot process.
4. The program must follow proper naming conventions of this course. (10 points)
5. Test the program and provide a print-screen of the test results. (10 points)
6. Be sure to have the proper program documentation/comments. All methods must have the proper JavaDoc comments. (10 points)
7. Generate a JavaDoc for your Project. You do this by selecting your project folder, select Project, Generate JavaDoc. You can refresh your project to see the doc folder that contains your index.html. Select Open With, Web Browser, navigate to annotations and provide a print-screen with your submission. (25 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!