@Override
    public List<Manutencao> listAll() {
        Connection conn = null;
        PreparedStatement pstm = null;
        ResultSet rs = null;
        List<Manutencao> manutencoes = new ArrayList<>();
        try{
            conn = ConnectionFactory.getConnection();
            pstm = conn.prepareStatement(LIST);
            rs = pstm.executeQuery();
            while (rs.next()){
                Manutencao m = new Manutencao();
                m.setId_manutencao(rs.getInt("id_manutencao"));
                m.setMotivo(rs.getString("nome_fn"));
                m.setTipo(rs.getString("telefone_fn"));
                m.setData(rs.getDate("endereco_fn"));
                manutencoes.add(m);
            }
        }catch(Exception e){
            JOptionPane.showMessageDialog(null,"Erro ao listar manutencoes " + e);
        }finally{
            try{
                ConnectionFactory.closeConnection(conn, pstm, rs);
            }catch(Exception e){
                JOptionPane.showMessageDialog(null,"Erro ao desconectar com o banco " + e);
            }
        }
        return manutencoes;
    }