Examples of DBTransaction


Examples of marauroa.server.db.DBTransaction

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

Examples of marauroa.server.db.DBTransaction

   * @param address ip-address
   * @return true, if this address is blocked; false otherwise
   * @throws SQLException in case of an database error
   */
  public boolean isAddressBlocked(String address) throws SQLException {
    DBTransaction transaction = TransactionPool.get().beginWork();
    try {
      boolean res = isAddressBlocked(transaction, address);
      return res;
    } finally {
      TransactionPool.get().commit(transaction);
View Full Code Here

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

Examples of marauroa.server.db.DBTransaction

   *
   * @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

Examples of marauroa.server.db.DBTransaction

   *
   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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

Examples of marauroa.server.db.DBTransaction

   * @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
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.