Beispiel #1
0
 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()});
 }
Beispiel #2
0
 public void create(Branch b) throws SQLException {
   save(
       "insert into tbl_library_branch (branchName,branchAddress) values (?)",
       new Object[] {b.getBranchName(), b.getBranchAddress()});
 }