public ArrayList<AreaFormacao> listar(String condicao) throws Exception
	{
		ArrayList<AreaFormacao> listaAreaFormacao = new ArrayList<AreaFormacao>();
		String sql = "SELECT * FROM areaformacao " + condicao;
		
		try
		{
			PreparedStatement stmt = ConnectionFactory.getConnection().prepareStatement(sql);
			ResultSet rs = stmt.executeQuery();
			
			while (rs.next())
			{
				AreaFormacao areaformacao = new AreaFormacao();
				areaformacao.setId(rs.getLong("id"));
				areaformacao.setNome(rs.getString("nome"));
				listaAreaFormacao.add(areaformacao);
			}
			rs.close();
		}
		catch (SQLException e)
		{
			throw e;
		}
		
		return listaAreaFormacao;
	}