Explanation of Code
The addRecord() method
This method is used to add a new student record in the database. The
method gets a Student object as its
argument. It extracts the information in the student object and stores
it in the database.
The updateRecord() method
This method is used to update an existing student record. The method
gets a Student object as its parameter.
The deleteRecord() method
This method is used to delete information about an existing student.
The method gets the roll number of the student as its parameter.
The findRecord() method
This method is used to find a student record. It gets the roll number
of the student as its parameter. If a record is found, it creates and
returns a Student object.
|