Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.RQLException


   */
  private boolean isInvokedPageContainedInTable() throws RQLException {
    try {
      return getCountResultSet(invokedPage.getPageGuid()).getInt(1) > 0;
    } catch (SQLException ex) {
      throw new RQLException("Error checking if page with given page id " + invokedPage.getPageId() + " is contained in database table", ex);
    }
  }
View Full Code Here


      Statement stmt = connection.createStatement();
      sql = "CREATE TABLE " + tableName
          + " (pageGuid varchar primary key, pageId varchar, headline varchar, template varchar, contentAreas varchar)";
      stmt.executeUpdate(sql);
    } catch (SQLException ex) {
      throw new RQLException("Error in sql " + sql, ex);
    }
  }
View Full Code Here

   */
  private String getInvokedPageContentAreas() throws RQLException {
    try {
      return getInvokedPageResultSet().getString(5);
    } catch (SQLException ex) {
      throw new RQLException("Error retrieving the content areas for page with ID " + invokedPage.getPageId(), ex);
    }
  }
View Full Code Here

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

      // move to the only row
      countPageRs.next();
      return countPageRs;

    } catch (SQLException ex) {
      throw new RQLException("Error returning the count(*) page result set from database table", ex);
    }
  }
View Full Code Here

   */
  public String getCurrentPageContentAreas() throws RQLException {
    try {
      return getSelectAllRs().getString(5);
    } catch (SQLException ex) {
      throw new RQLException("Error in getting the content areas", ex);
    }
  }
View Full Code Here

   */
  public String getCurrentPageGuid() throws RQLException {
    try {
      return getSelectAllRs().getString(1);
    } catch (SQLException ex) {
      throw new RQLException("Error in getting the page GUID", ex);
    }
  }
View Full Code Here

   */
  public String getCurrentPageHeadline() throws RQLException {
    try {
      return getSelectAllRs().getString(3);
    } catch (SQLException ex) {
      throw new RQLException("Error in getting the headline", ex);
    }
  }
View Full Code Here

   */
  public String getCurrentPageId() throws RQLException {
    try {
      return getSelectAllRs().getString(2);
    } catch (SQLException ex) {
      throw new RQLException("Error in getting the page ID", ex);
    }
  }
View Full Code Here

      String sql = null;
      try {
        sql = "INSERT INTO " + tableName + " values(?, ?, ?, ?, ?)";
        insertStmt = connection.prepareStatement(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in sql " + sql, ex);
      }
    }
    return insertStmt;
  }
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.