Package net.bnubot.db

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


    String account = accountName[0].getText();
    Account a = Account.get(account);
    if(a == null)
      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


      // Reset all scores to zero
      for(Account a : leaders)
        a.setTriviaCorrect(0);
      try {
        // Save changes
        winner.updateRow();
        // Return the winner's name
        return winner.getName();
      } catch(Exception e) {
        Out.exception(e);
      }
View Full Code Here

                Account answeredBy = Account.get(answerUser);
                if(answeredBy != null) {
                  int score = answeredBy.getTriviaCorrect();
                  score++;
                  answeredBy.setTriviaCorrect(score);
                  answeredBy.updateRow();
                  extra += " Your score is " + score + ".";
                }
              } catch(Exception e) {
                Out.exception(e);
              }
View Full Code Here

    subject.setAccount(rsSubjectAccount);
    rsSubjectAccount.setRank(Rank.get(targetAccess));

    try {
      rsSubjectAccount.updateRow();
      return rsSubjectAccount;
    } catch(Exception e) {
      throw new AccountDoesNotExistException(e.getMessage());
    }
  }
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.