Package tigase.db

Examples of tigase.db.TigaseDBException


        update_last_login_st.setBigDecimal(2, bd);
        update_last_login_st.setString(3, JIDUtils.getNodeNick(user));
        update_last_login_st.executeUpdate();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error accessing 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 accessing repository.", e);
      } // end of try-catch
    }
  }
View Full Code Here

    } catch (NoSuchAlgorithmException e) {
      throw
        new AuthorizationException("Password encoding algorithm is not supported.",
          e);
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } // end of catch
  }
View Full Code Here

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

        user_add_st.setString(3, Algorithms.hexDigest("", password, "MD5"));
        user_add_st.executeUpdate();
      }
    } catch (NoSuchAlgorithmException e) {
      throw
        new TigaseDBException("Password encoding algorithm is not supported.",
          e);
    } catch (SQLException e) {
      throw new UserExistsException("Error while adding user to repository, user exists?", e);
    }
  }
View Full Code Here

   * @exception UserExistsException if an error occurs
   * @exception TigaseDBException if an error occurs
   */
  public void updatePassword(final String user, final String password)
    throws UserNotFoundException, TigaseDBException {
    throw new TigaseDBException("Updatin user password is not supported.");
  }
View Full Code Here

   * @exception UserNotFoundException if an error occurs
   * @exception TigaseDBException if an error occurs
   */
  public void removeUser(final String user)
    throws UserNotFoundException, TigaseDBException {
    throw new TigaseDBException("Removing user is not supported.");
  }
View Full Code Here

          }
        }
        throw new UserNotFoundException("User does not exist: " + user);
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } finally {
      release(null, rs);
    } // end of catch
  }
View Full Code Here

      synchronized (user_logout_sp) {
        user_logout_sp.setString(1, JIDUtils.getNodeID(user));
        user_logout_sp.execute();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    }
  }
View Full Code Here

        rs = add_user_plain_pw_sp.executeQuery();
      }
    } catch (SQLIntegrityConstraintViolationException e) {
      throw new UserExistsException("Error while adding user to repository, user exists?", e);
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    } finally {
      release(null, rs);
    }
  }
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.