Explanation of CodeThe addRecord() methodThis 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() methodThis method is used to update an existing student record. The method gets a Student object as its parameter. The deleteRecord() methodThis method is used to delete information about an existing student. The method gets the roll number of the student as its parameter. The findRecord() methodThis 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.
|
||
|
||
Copyright © 2001 www.universalteacher.com |
||