Пример #1
0
  /**
   * Returns a count of the nodes associated with the given sCodeIS
   *
   * @param PCSession session, the PCSession object for the database to use.
   * @param sCodeID, the code id for the particular code object
   * @return a count of the nodes associated with given sCodeID in the DB
   * @exception java.sql.SQLException
   */
  public int getNodeCount(PCSession session, String sCodeID) throws SQLException {

    DBConnection dbcon = getDatabaseManager().requestConnection(session.getModelName());

    int count = DBCodeNode.getNodeCount(dbcon, sCodeID);

    getDatabaseManager().releaseConnection(session.getModelName(), dbcon);

    return count;
  }
Пример #2
0
  /**
   * Returns all the nodes associated with the given sCodeIS
   *
   * @param PCSession session, the PCSession object for the database to use.
   * @param sCodeID, the code id for the particular code object
   * @return a Vector of all the nodes associated with given sCodeID in the DB
   * @exception java.sql.SQLException
   */
  public Vector getNodes(PCSession session, String sCodeID, String userID) throws SQLException {

    DBConnection dbcon = getDatabaseManager().requestConnection(session.getModelName());

    Vector vtNodes = DBCodeNode.getNodes(dbcon, sCodeID, userID);

    getDatabaseManager().releaseConnection(session.getModelName(), dbcon);

    return vtNodes;
  }