Code example for ResultSet

Methods: getBoolean, getString, getTimestamp

0
			"	FROM branch"; 
	 
	public BranchInfo mapRow(ResultSet rs, int arg1) throws SQLException {
		BranchInfo info = new BranchInfo();
		 
		info.setBrCde(rs.getString("br_cde"));
		info.setBrDesc(rs.getString("br_desc"));
		info.setBrActive(rs.getBoolean("br_active"));
		info.setBrClosedDate(rs.getTimestamp("br_closed"));
		info.setGrpCde(rs.getString("grp_cde"));
		info.setCtryCde(rs.getString("ctry_cde"));
		info.setBrPhone(rs.getString("br_phone"));
		info.setBrTrading(rs.getBoolean("br_is_trading"));
		 
		return info;
	} 
 
}