public Notes getNotesById(int id, int inst_id, int sub_id, int div_id) {
   NotesDB db = new NotesDB();
   List<Notes> notes = db.getNotesPathById(id, inst_id, sub_id, div_id);
   if (notes != null) {
     return notes.get(0);
   }
   return null;
 }
  public Boolean addNotes(Notes notes) {

    NotesDB db = new NotesDB();
    db.add(notes);
    return true;
  }
 public boolean removebatchfromnotes(int inst_id, int div_id, String batchid) {
   NotesDB db = new NotesDB();
   return db.removebatchfromnotes(inst_id, div_id, batchid);
 }
 public boolean deleteNotesRelatedToDivision(int div_d) {
   NotesDB db = new NotesDB();
   return db.deleteNotesRelatedToDivision(div_d);
 }
 public boolean deleteNotesRelatedToSubject(int sub_id) {
   NotesDB db = new NotesDB();
   return db.deleteNotesRelatedToSubject(sub_id);
 }
 public boolean validatenotesnamebyID(String notesname, int regID, int notesID) {
   NotesDB db = new NotesDB();
   return db.validatenotesnamebyID(notesname, regID, notesID);
 }
 public void updatenotes(
     String notesname, int notesid, String batchids, int inst_id, int div_id, int sub_id) {
   NotesDB db = new NotesDB();
   db.updatenotes(notesname, notesid, batchids, inst_id, div_id, sub_id);
 }
 public List<Notes> getStudentNotesPath(String batch, int subid, int classid, int div_id) {
   NotesDB notesDB = new NotesDB();
   List<Notes> list = notesDB.getStudentNotesPath(batch, subid, classid, div_id);
   return list;
 }
 public int getNotescount(int divid, int subid, int classid, String batchids) {
   NotesDB notesDB = new NotesDB();
   return notesDB.getNotescount(divid, subid, classid, batchids);
 }
 public List<Notes> getNotesPath(
     int divid, int subid, int classid, int currentPage, String batchids) {
   NotesDB notesDB = new NotesDB();
   List<Notes> list = notesDB.getNotesPath(divid, subid, classid, currentPage, batchids);
   return list;
 }
  public Boolean deleteNotes(int notesid, int inst_id, int div_id, int sub_id) {

    NotesDB db = new NotesDB();
    db.deletenotes(notesid, inst_id, div_id, sub_id);
    return true;
  }