@Override
	public Set<Record> getRecords(Account account) {
		
		Set<Record> records = new HashSet<Record>();
		PreparedStatement pStmt = null;
		ResultSet rs = null;
		
		try {
			
			pStmt = conn.prepareStatement("SELECT * FROM RECORD WHERE id_account = ? ORDER BY id;");
			pStmt.setInt(1, account.getId());
			rs = pStmt.executeQuery();
			
			while (rs.next()) {
				
				Record record = new Record();
				record.setId(rs.getInt("id"));
				record.setAccount(account);
				record.setDate(rs.getString("date"));
				record.setFunds(rs.getDouble("funds"));
				record.setCategory(getCategory(rs.getInt("id_category")));
				records.add(record);

			}
			
		} catch (SQLException e) {

			e.printStackTrace();
			
		} finally {
			
			closeResource(pStmt);
			closeResource(rs);
			
		}
		
		return records;
		
	}