public List<Named> getAll(String typeEntity){
      ArrayList<Named> list = new ArrayList<>();
      
      ResultSet rs = this.getResultsOfQuery("SELECT * FROM entity WHERE typeEntity='"+typeEntity+"'");
        try {
            while (rs.next())
            {
                switch (typeEntity){
                    case "POKEMON":
                        list.add(getPokemonFromCurrentRow(rs));
                        break;
                    case "SKILL":
                        list.add(getSkillFromCurrentRow(rs));
                        break;
                    case "TRAINER":
                        list.add(getTrainerFromCurrentRow(rs));
                        break;
                }
                    
                            
            } 
        } catch (SQLException ex) {
            Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
        }
      
      return list;
    }