Package mymadrid.entite

Examples of mymadrid.entite.UserApp


        Vector<UserApp> userVector = new Vector<UserApp>();
        String QuerySelect = "Select * from users;";
        res = ste.executeQuery(QuerySelect);

        while (res.next()) {
            UserApp e = new UserApp();
            e.setUserId(res.getInt("userId"));
            e.setUserName(res.getString("userName"));
            e.setFbEmail(res.getString("fbEmail"));
            userVector.add(e);
        }
        return userVector;
    }
View Full Code Here


        }
        return userVector;
    }

    public UserApp findByEmail(String fbMail) throws SQLException {
        UserApp u = null;


        String QuerySelect = "Select * from users  where fbEmail = ? ;";

        step = connect.prepareStatement(QuerySelect);
        step.setString(1, fbMail);
        res = step.executeQuery();

        while (res.next()) {
            u = new UserApp();
            u.setUserId(res.getInt(1));
            u.setFbEmail(res.getString(3));
            u.setUserName(res.getString(2));
       
        }

        return u;
    }
View Full Code Here

                                            authFrame.dispose();
                                            /********/
                                            String userName = user.getName();
                                            String userMail = user.getEmail();
                                            UserDao udao = new UserDao();
                                            currentUser = new UserApp(userName, userMail);
                                            UserApp u = currentUser ;
                                         
                                            if (u.equals(udao.findByEmail(userMail))) {
                                                 
                                               JOptionPane.showMessageDialog(context, "We have you in our database! So welcome :)",
                                                        "Welcome", JOptionPane.INFORMATION_MESSAGE);
                                              //  fbCnx.this.setVisible(false);
                                             
View Full Code Here

TOP

Related Classes of mymadrid.entite.UserApp

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.