Beispiel #1
0
 @Override
 public boolean regist(User user) {
   return ud.saveUser(user) == 1;
 }
Beispiel #2
0
 @Override
 public boolean getUserByUserName(String userName) {
   User user = ud.getUserByUserName(userName);
   return !(user == null);
 }
Beispiel #3
0
 @Override
 public User Login(User user) {
   return ud.getUserByUsernameAndPassword(user);
 }