×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: sumesh tg
Added: Sep 30, 2016 6:11 AM
Views: 4
  1.   public class BranchMapper implements RowMapper<EmployerBranchBEAN> {
  2.  
  3.         /**
  4.          *
  5.          * @param rs
  6.          * @param rowNum
  7.          * @return
  8.          * @throws SQLException
  9.          */
  10.         @Override
  11.         public EmployerBranchBEAN mapRow(ResultSet rs, int rowNum) throws SQLException {
  12.             EmployerBranchBEAN branchBEAN = new EmployerBranchBEAN();
  13.             branchBEAN.setEmpBranchId(rs.getString("emp_branch_id"));
  14.             branchBEAN.setEmpBranchName(rs.getString("emp_branch_name"));
  15.             branchBEAN.setEmployerId(rs.getString("employer_id"));
  16.             branchBEAN.setContactAddress(rs.getString("country"));
  17.             branchBEAN.setContactAddress(rs.getString("location"));
  18.             branchBEAN.setContactAddress(rs.getString("contact_address"));
  19.             return branchBEAN;
  20.         }
  21.  
  22.     }