Build a new project, OracleInsertStudent, and develop code for the StudentFrame Form window to insert a new
Question:
Build a new project, OracleInsertStudent, and develop code for the StudentFrame Form window to insert a new student record into the Student Table in our sample database using the Java runtime object method. The new student’s record is:
• Student ID: F78569 •Student Name: Williams Ford •GPA: 3.42 •Credits: 97 •Major: Computer Engineering •SchoolYear: Junior •Email: wford@college.edu •simage: Default.jpg Part 1:
Copy and modify a project, OracleSelectStudent, which can be found in the folder Class DB Projects\Chapter 6 in the Students folder on the CRC Press ftp site (refer to Figure 1.2 in Chapter 1). Based on that project and referring to another project, OracleInsertFaculty, which can be found in the folder Class DB Projects\Chapter 7 in the Students folder on the CRC Press ftp site, build your code in the Insert button event handler on the StudentFrame Form.
Part 2:
1) Add one more method, Java Runtime Method, into the StudentFrame constructor.
2) Add one if block in the Insert button event handler to identify the Java Runtime Method, and build and add your code inside this block.
3) You may need to use three user-defined methods in the project, OracleInsertFaculty, chkFaculty(), clearFaculty() and getFacultyImage(), which you can obtain from the Insert button event handler in the Facultyframe class in the same project. It is recommended to change their names to chkStudent(), clearStudent() and getStudentImage(), respectively.
Step by Step Answer:
Oracle Database Programming With Java Ideas Designs And Implementations
ISBN: 9781032302294
1st Edition
Authors: Ying Bai