Code example for ResultSet

Methods: getBoolean, getInt, getString

0
		throws SQLException { 
			 
		PatternMetadata pm = new PatternMetadata();
			 
		//Popolamento dei campi e gestione delle eccezioni 
		pm.setIdPatternMetadata(rs.getInt("ID_PATTERN_METADATA"));
		pm.setIdPattern(rs.getInt("ID_PATTERN"));
		pm.setKeyname(rs.getString("KEYNAME"));
		pm.setValue(rs.getString("VALUE"));
		pm.setActivitiProcessMetadata(
				rs.getBoolean("ACTIVITI_PROCESS_METADATA"));
		 
		DataTraceClassFactory.createDataTraceClass(pm, rs);
 
		return pm;
	} 
}