Code example for ResultSet

Methods: getBooleangetIntgetStringnext

0
		pstmt.setInt(2, sId);
 
		log.info(sql + " : " + user + " : " + sId);
		resultSet = pstmt.executeQuery();
 
		if (resultSet.next()) {								
 
			s = new Survey();
			s.setId(resultSet.getInt(1));
			s.setName(resultSet.getString(2));
			s.setDisplayName(resultSet.getString(3));
			s.setDeleted(resultSet.getBoolean(4));
			 
		}  
		return s;
		 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE