Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.RQLException


        readStmt.setString(1, invokedPage.getPageGuid());
        invokedPageRs = readStmt.executeQuery();
        // move to the only row
        invokedPageRs.next();
      } catch (SQLException ex) {
        throw new RQLException("Error returning the page result set from database table", ex);
      }
    }
    return invokedPageRs;
  }
View Full Code Here


      String sql = null;
      try {
        sql = "SELECT pageGuid, pageId, headline, template, contentAreas from " + tableName;
        selectAllRs = connection.createStatement().executeQuery(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in sql " + sql, ex);
      }
    }
    return selectAllRs;
  }
View Full Code Here

      String sql = null;
      try {
        sql = "SELECT pageGuid, pageId, headline, template, contentAreas from " + tableName + " where pageGuid=?";
        selectPageStmt = connection.prepareStatement(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in sql " + sql, ex);
      }
    }
    return selectPageStmt;
  }
View Full Code Here

      String sql = null;
      try {
        sql = "UPDATE " + tableName + " set contentAreas = ? WHERE pageGuid = ?";
        updateStmt = connection.prepareStatement(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in prepare update sql statement" + sql, ex);
      }
    }
    return updateStmt;
  }
View Full Code Here

      insertStmt.setString(2, invokedPage.getPageId());
      insertStmt.setString(3, invokedPage.getHeadline());
      insertStmt.setString(5, contentAreaName);
      insertStmt.executeUpdate();
    } catch (SQLException ex) {
      throw new RQLException("Error on insert page record for " + invokedPage.getHeadlineAndId() + " in database", ex);
    }
  }
View Full Code Here

   */
  public boolean nextPage() throws RQLException {
    try {
      return getSelectAllRs().next();
    } catch (SQLException ex) {
      throw new RQLException("Error in next()", ex);
    }
  }
View Full Code Here

      sql = "SELECT count(*) from " + tableName;
      ResultSet rs = connection.createStatement().executeQuery(sql);
      rs.next();
      size = rs.getInt(1);
    } catch (SQLException ex) {
      throw new RQLException("Error in sql " + sql, ex);
    }
    return size;
  }
View Full Code Here

      PreparedStatement updateStmt = getUpdateStatement();
      updateStmt.setString(1, contentAreas);
      updateStmt.setString(2, invokedPage.getPageGuid());
      updateStmt.executeUpdate();
    } catch (SQLException ex) {
      throw new RQLException("Error on update content areas for page", ex);
    }
  }
View Full Code Here

   */
  private void start() throws RQLException {

    // check for start page
    if (startPage == null) {
      throw new RQLException("This PhysicalPageCollector cannot start, because a start page is missing. Pass it via the constructor or via the collect() method.");
    }
    // collect recursively
    doRecursive(startPage);
  }
View Full Code Here

            changes.add(new ChangeLogEntry(this, elem.getChildTextTrim("user"), elem.getChildTextTrim("comment"), elem
                .getChildTextTrim("date")));
          }
        }
      } catch (JDOMException ex) {
        throw new RQLException("JDOM exception parsing of changes (hip_change_log) in page " + getPageInfoText() + " not possible.", ex);
      } catch (IOException ex) {
        throw new RQLException("IO exception parsing of changes (hip_change_log) in page " + getPageInfoText() + " not possible.", ex);
      }
    }
    return changes;
  }
View Full Code Here

TOP

Related Classes of com.hlcl.rql.as.RQLException

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.