public void update(Branch b) throws SQLException { save( "update tbl_library_branch set branchName = ?,branchAddress=? where branchId = ?", new Object[] {b.getBranchName(), b.getBranchAddress(), b.getBranchId()}); }
public void create(Branch b) throws SQLException { save( "insert into tbl_library_branch (branchName,branchAddress) values (?)", new Object[] {b.getBranchName(), b.getBranchAddress()}); }