×

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:21 AM
Views: 2128
  1.  
  2.         ObservableList<EmployerBranchBEAN> listContacts = FXCollections.observableArrayList();
  3.         jdbcTemplate = new JdbcTemplate(dataSource);
  4.         String query = "SELECT * FROM " + TableNames.TBL_SR_EMPLYR_HEAD_CONTACT + " WHERE employer_id = ?";
  5.         List<EmployerBranchBEAN> temp = jdbcTemplate.query(query, new Object[]{employerId}, new BranchMapper());
  6.         listContacts.addAll(temp);
  7.         return listContacts;
  8.