Package net.bnubot.db

Examples of net.bnubot.db.BNLogin.updateRow()


      BNLogin bnlUser = BNLogin.get(user);
      if((bnlUser != null) && (bnlUser.getAccount() == null)) {
        // The user has no account; shitlist him!
        Account account = Account.create(user.getFullAccountName(), Rank.getMin(), null);
        bnlUser.setAccount(account);
        bnlUser.updateRow();
      }
    } catch(Exception e) {
      Out.exception(e);
    }
  }
View Full Code Here


      a = Account.create(account, Rank.getMax(), null);
    a.updateRow();
    for(String l : logins) {
      BNLogin bnl = BNLogin.getCreate(new BNetUser(l));
      bnl.setAccount(a);
      bnl.updateRow();
    }
  }
}
View Full Code Here

      BNLogin rsUser = BNLogin.getCreate(user);
      if(rsUser != null) {
        rsUser.setLastSeen(new Date(System.currentTimeMillis()));
        if(action != null)
          rsUser.setLastAction(action);
        rsUser.updateRow();
        return rsUser;
      }
    } catch(Exception e) {
      Out.exception(e);
    }
View Full Code Here

        }
        break;
      }
      }
      try {
        rsUser.updateRow();
      } catch(Exception e) {
        Out.exception(e);
      }

      Account rsAccount = Account.get(user);
View Full Code Here

                  && (recoverAccount.getBnLogins().size() == 0)) {
                    rsAccount = recoverAccount;
                    // Reset the account to rank zero, just in case
                    rsAccount.setRank(Rank.get(0));
                    rsUser.setAccount(rsAccount);
                    rsUser.updateRow();
                  } else {
                    rsAccount = createAccount(name, 0, null, rsUser);
                  }
                } catch(Exception e) {
                  Out.exception(e);
View Full Code Here

      if(newAccount == null)
        throw new AccountDoesNotExistException(params[1]);
    }

    rsSubject.setAccount(newAccount);
    rsSubject.updateRow();

    // Set params[1] to what the account looks like in the database
    if(newAccount == null)
      params = new String[] { params[0], "NULL" };
    else
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.