Package net.sf.jasperreports.engine.design

Examples of net.sf.jasperreports.engine.design.JRDesignQuery


  /**
   *
   */
  public Object createObject(Attributes atts)
  {
    JRDesignQuery query = new JRDesignQuery();

    String language = atts.getValue(JRXmlConstants.ATTRIBUTE_language);
    if (language != null)
    {
      query.setLanguage(language);
    }
   
    return query;
  }
View Full Code Here


    parameter.setName("OrderByClause");
    parameter.setValueClass(java.lang.String.class);
    jasperDesign.addParameter(parameter);

    //Query
    JRDesignQuery query = new JRDesignQuery();
    query.setText("SELECT * FROM Address $P!{OrderByClause}");
    jasperDesign.setQuery(query);

    //Fields
    JRDesignField field = new JRDesignField();
    field.setName("Id");
View Full Code Here

      else
      {
        // Use JasperReports Query logic to parse parameters in chart
        // queries

        JRDesignQuery query = new JRDesignQuery();
        query.setText(report.getQuery());

        // convert parameters to JRDesignParameters so they can be
        // parsed
        Map jrParameters = ORUtil.buildJRDesignParameters(parameters);
View Full Code Here

      else
      {
        // Use JasperReports Query logic to parse parameters in chart
        // queries

        JRDesignQuery query = new JRDesignQuery();
        query.setText(param.getData());

        // convert parameters to JRDesignParameters so they can be
        // parsed
        Map<String,JRDesignParameter> jrParameters = ORUtil.buildJRDesignParameters(parameters);
View Full Code Here

      else
      {
        // Use JasperReports Query logic to parse parameters in chart
        // queries

        JRDesignQuery query = new JRDesignQuery();
        query.setText(report.getQuery());

        // convert parameters to JRDesignParameters so they can be
        // parsed
        Map<String, JRDesignParameter> jrParameters = ORUtil.buildJRDesignParameters(parameters);
View Full Code Here

      conn = dataSourceProvider.getConnection(dataSource.getId());

      // Use JasperReports Query logic to parse parameters in chart
      // queries

      JRDesignQuery query = new JRDesignQuery();
      query.setText(reportChart.getQuery());

      // convert parameters to JRDesignParameters so they can be parsed
      Map jrParameters = ORUtil.buildJRDesignParameters(parameters);

      pStmt = JRQueryExecuter.getStatement(query, jrParameters, parameters, conn);
View Full Code Here

      else
      {
        // Use JasperReports Query logic to parse parameters in chart
        // queries

        JRDesignQuery query = new JRDesignQuery();
        query.setText(report.getQuery());

        // convert parameters to JRDesignParameters so they can be
        // parsed
        Map<String,JRDesignParameter> jrParameters = ORUtil.buildJRDesignParameters(parameters);
View Full Code Here

    des.setTitleNewPage(options.isTitleNewPage());

    des.setIgnorePagination(options.isIgnorePagination());

    if (dr.getQuery() != null){
      JRDesignQuery query = getJRDesignQuery(dr);
      des.setQuery(query);
    }

    for (Iterator iterator = dr.getProperties().keySet().iterator(); iterator.hasNext();) {
      String name = (String) iterator.next();
View Full Code Here

    des.setName(dr.getReportName() != null ? dr.getReportName() : "DynamicReport");
    return des;
  }

  protected static JRDesignQuery getJRDesignQuery(DynamicReport dr) {
    JRDesignQuery query = new JRDesignQuery();
    query.setText(dr.getQuery().getText());
    query.setLanguage(dr.getQuery().getLanguage());
    return query;
  }
View Full Code Here

    options.setColumnsPerPage(new Integer(jd.getColumnCount()));

    options.setPage(new Page(jd.getPageHeight(),jd.getPageWidth()));

    if (dr.getQuery() != null){
      JRDesignQuery query = DJJRDesignHelper.getJRDesignQuery(dr);
      jd.setQuery(query);
    }

  }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.design.JRDesignQuery

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.