Code example for ResultSet

Methods: first, getLong

0
		pstmt.setString(2, model.getValue());
	} 
 
	@Override 
	protected Object resultMapping(ResultSet rs) throws SQLException {
		if(rs.first())
			return rs.getLong(1);
		return 0; 
	} 
}