public Aeroporto selectByName(String name) {
		Aeroporto aeroporto = new Aeroporto();
		EnderecoDAO enderecoDAO = new EnderecoDAO();
		try {
			connection = Conexao.getInstance().obterConexao();
			connection.setAutoCommit(false);
			statement = connection.createStatement();

			resultSet = statement.executeQuery("SELECT * FROM TB_AEROPORTO WHERE NOME = '" + name+"'");
			resultSet.next();
			aeroporto.setId(resultSet.getLong("id"));
			aeroporto.setCodigo(resultSet.getString("codigo"));
			aeroporto.setNome(resultSet.getString("nome"));
			aeroporto.setEndereco(enderecoDAO.selectById(resultSet.getLong("id_endereco")));

		} catch (Exception e) {
			// TODO: handle exception
			try {
				if (connection != null && !connection.isClosed()) {
					connection.rollback();
				}
			} catch (SQLException e2) {
				// TODO: handle exception
				e2.printStackTrace();
			} finally {
				try {
					if (resultSet != null) {
						resultSet.close();
					}
					if (statement != null) {
						statement.close();
					}
					if (connection != null) {
						connection.close();
					}
				} catch (Exception e3) {
					// TODO: handle exception
				}
			}
		}

		return aeroporto;

	}