Package tigase.db

Examples of tigase.db.TigaseDBException


          insert_key_val_st.setString(4, val);
          insert_key_val_st.executeUpdate();
        } // end of for (String val: list)
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error adding data list, user_id: " + user_id
        + ", subnode: " + subnode + ", key: " + key
        + ", uid: " + uid + ", nid: " + nid
        + ", list: " + Arrays.toString(list), e);
    }
    //    cache.put(user_id+"/"+subnode+"/"+key, list);
View Full Code Here


        }
      } else {
        return null;
      } // end of if (nid > 0) else
    } catch (SQLException e) {
      throw new TigaseDBException("Error getting subnodes list.", e);
    } finally {
      release(null, rs);
    }
  }
View Full Code Here

        } else {
          return def;
        } // end of if (nid > 0) else
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error getting data list.", e);
    } finally {
      release(null, rs);
    }
  }
View Full Code Here

          remove_key_data_st.setString(2, key);
          remove_key_data_st.executeUpdate();
        }
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Error getting subnodes list.", e);
    }
  }
View Full Code Here

        } else {
          throw new UserNotFoundException("User does not exist: " + user);
        } // end of if (isnext) else
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Problem with retrieving user password.", e);
    } finally {
      release(null, rs);
    }
  }
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) {
        user_logout.setString(1, JIDUtils.getNodeID(user));
        user_logout.execute();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    }
  }
View Full Code Here

        }
      }
    } 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

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

      synchronized (remove_user) {
        remove_user.setString(1, JIDUtils.getNodeID(user));
        remove_user.execute();
      }
    } catch (SQLException e) {
      throw new TigaseDBException("Problem accessing repository.", e);
    }
  }
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.