Package mymadrid.entite

Examples of mymadrid.entite.Team


   
            try {
            
                for (Team t : teamdao.SelectTeam()) {
                    teamName=t.getName();
                    group.addTeam(new Team(teamName, teamName));
                    teams.add(new Team(teamName, teamName));
                }

            } catch (SQLException ex) {
                Logger.getLogger(Group.class.getName()).log(Level.SEVERE, null, ex);
            }
View Full Code Here


        Vector<Team > teamVector = new Vector<Team >();
        String QuerySelect = "Select * from `team`";
        res = ste.executeQuery(QuerySelect);

        while (res.next()) {
            Team m = new Team();
            m.setId(res.getString(1));
            m.setName(res.getString(2));
          
            teamVector.add(m);
        }
        return teamVector;
    }
View Full Code Here


  
    @Override
    public Team findId(String id) throws SQLException {
        Team m = null;


        String QuerySelect = "Select * from team  where id = ? ;";

        step = connect.prepareStatement(QuerySelect);

        res = step.executeQuery();

        while (res.next()) {
            m = new Team();
            m.setId(res.getString("id"));
            m.setName(res.getString("name"));
           

        }

        return m;
View Full Code Here

TOP

Related Classes of mymadrid.entite.Team

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.