Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.RQLException


   */
  public String getCurrentPageGuid() throws RQLException {
    try {
      return getSelectAllRs().getString(6);
    } 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(2);
    } 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(1);
    } catch (SQLException ex) {
      throw new RQLException("Error in getting the page ID", ex);
    }
  }
View Full Code Here

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

      String sql = null;
      try {
        sql = "INSERT INTO " + name + " values(?, ?, ?, ?, ?, ?)";
        insertStmt = connection.prepareStatement(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in sql " + sql, ex);
      }
    }
    return insertStmt;
  }
View Full Code Here

        if (sortMode == SORT_MODE_TEMPLATE_NAME) {
          sql += " order by template";
        }
        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 count(*) from " + name + " where pageId=?";
        selectPageStmt = connection.prepareStatement(sql);
      } catch (SQLException ex) {
        throw new RQLException("Error in sql " + sql, ex);
      }
    }
    return selectPageStmt;
  }
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

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

      sql = "SELECT count(*) from " + name;
      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

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.