Package mymadrid.dao

Examples of mymadrid.dao.UserDao


                                           
                                            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);
                                             
                                            }else
                                            {
                                             udao.InsertUser(u);
                                            }
                                        } catch (SQLException ex) {
                                            Logger.getLogger(fbCnx.class.getName()).log(Level.SEVERE, null, ex);
                                        }
                                    }
View Full Code Here

TOP

Related Classes of mymadrid.dao.UserDao

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.