Package marauroa.server.db

Examples of marauroa.server.db.DBTransaction


   *    <code>false<code>, if the seed exists but is not authenticated
   *    <code>null</code>, if the seed does not exist at all
   * @throws SQLException in case of an database error
   */
  public Boolean verifySeed(String username, String seed) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      return verifySeed(transaction, username, seed);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here


   *
   * @param seed seed
   * @throws SQLException in case of an database error
   */
  public void useSeed(String seed) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      useSeed(transaction, seed);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   *
   * @return list of banned ip-address ranges
   * @throws SQLException in case of an database error
   */
  public List<InetAddressMask> getBannedAddresses() throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      List<InetAddressMask> res = getBannedAddresses(transaction);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param password the hashed password's bytearray
   * @param email email-address
   * @throws SQLException in case of an database error
   */
  public void addPlayer(String username, byte[] password, String email) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      addPlayer(transaction, username, password, email);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @param username username
   * @param email new email-address
   * @throws SQLException in case of an database error
   */
  public void changeEmail(String username, String email) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      changeEmail(transaction, username, email);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @param username username
   * @param password new password
   * @throws SQLException in case of an database error
   */
  public void changePassword(String username, String password) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      changePassword(transaction, username, password);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @param username username
   * @return true, if the account exists; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean hasPlayer(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = hasPlayer(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param username username
   * @param status account status
   * @throws SQLException in case of an database error
   */
  public void setAccountStatus(String username, String status) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      setAccountStatus(transaction, username, status);
    } finally {
      TransactionPool.get().commit(transaction);
    }
View Full Code Here

   * @param username username
   * @return account status, or <code>null</code> if no such account exists
   * @throws SQLException in case of an database error
   */
  public String getAccountStatus(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getAccountStatus(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

   * @param username username
   * @return account ban message, or <code>null</code> if this account is not banned
   * @throws SQLException in case of an database error
   */
  public String getAccountBanMessage(String username) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      String res = getAccountBanMessage(transaction, username);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

TOP

Related Classes of marauroa.server.db.DBTransaction

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.