public Voo selectById(long id){
		Voo voo = new Voo(null, null, null);
		try {
			connection = Conexao.getInstance().obterConexao();
			connection.setAutoCommit(false);
			statement = connection.createStatement();
	 
			resultSet = statement.executeQuery("SELECT * FROM TB_FUNCIONARIO WHERE ID = " + id);
			resultSet.next();
			voo.setId(resultSet.getLong("id"));
			voo.setCiaAerea(ciaAereaDAO.selectById(resultSet.getLong("id_cia_aerea")));
			voo.setAeroportoPortao1(aeroportoDAO.selectById(resultSet.getLong("id_embarque")));
			voo.setAeroportoPortao2(aeroportoDAO.selectById(resultSet.getLong("id_desembarque")));
			voo.setNome(resultSet.getString("nome"));
			voo.setDescricao(resultSet.getString("descricao"));
	 
		} 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 voo;
	 
	}