Package tigase.db

Examples of tigase.db.TigaseDBException


        update_last_login_st.setDate(1, new Date(System.currentTimeMillis()));
        update_last_login_st.setString(2, JIDUtils.getNodeNick(user));
        update_last_login_st.executeUpdate();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error accessin repository.", e);
    } // end of try-catch
  }
View Full Code Here


        update_online_status.setInt(1, status);
        update_online_status.setString(2, JIDUtils.getNodeNick(user));
        update_online_status.executeUpdate();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error accessin repository.", e);
    } // end of try-catch
  }
View Full Code Here

        updateLastLogin(user);
        updateOnlineStatus(user, 1);
      } // end of if (login_ok)
      return login_ok;
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } // end of catch
  }
View Full Code Here

    throws UserNotFoundException, TigaseDBException {
    try {
      checkConnection();
      updateOnlineStatus(user, 0);
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } // end of catch
  }
View Full Code Here

        + ", db: " + digest_db_pass);
      return digest.equals(digest_db_pass);
    } catch (NoSuchAlgorithmException e) {
      throw new AuthorizationException("No such algorithm.", e);
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } // end of catch
  }
View Full Code Here

        update_password.setString(1, password);
        update_password.setString(2, JIDUtils.getNodeNick(user));
        update_password.executeUpdate();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error accessin repository.", e);
    } // end of try-catch
  }
View Full Code Here

      if (autoCreateUser) {
        try {
          addUser(user);
          xmldb.setData(user, subnode, key, value);
        } catch (Exception ex) {
          throw new TigaseDBException("Unknown repository problem: ", ex);
        }
      } else {
        throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e);
      }
    } // end of try-catch
View Full Code Here

      if (autoCreateUser) {
        try {
          addUser(user);
          xmldb.setData(user, subnode, key, list);
        } catch (Exception ex) {
          throw new TigaseDBException("Unknown repository problem: ", ex);
        }
      } else {
        throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e);
      }
    } // end of try-catch
View Full Code Here

      if (autoCreateUser) {
        try {
          addUser(user);
          return xmldb.getDataList(user, subnode, key);
        } catch (Exception ex) {
          throw new TigaseDBException("Unknown repository problem: ", ex);
        }
      } else {
        throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e);
      }
    } // end of try-catch
View Full Code Here

      if (autoCreateUser) {
        try {
          addUser(user);
          return (String)xmldb.getData(user, subnode, key, def);
        } catch (Exception ex) {
          throw new TigaseDBException("Unknown repository problem: ", ex);
        }
      } else {
        throw new UserNotFoundException(USER_STR+user+NOT_FOUND_STR, e);
      }
    } // end of try-catch
View Full Code Here

TOP

Related Classes of tigase.db.TigaseDBException

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.