Code example for ResultSet

Methods: first, getLong

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