Examples of JRBeanArrayDataSource


Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    //Preparing parameters
    Map parameters = new HashMap();
    parameters.put("ReportTitle", "Address Report");
    parameters.put("DataFile", "CustomBeanFactory.java - Bean Array");

    JasperFillManager.fillReportToFile("build/reports/DataSourceReport.jasper", parameters, new JRBeanArrayDataSource(CustomBeanFactory.getBeanArray()));
    System.err.println("Filling time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else {
      throw new IllegalArgumentException("Value [" + value + "] cannot be converted to a JRDataSource");
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else {
      throw new IllegalArgumentException("Value [" + value + "] cannot be converted to a JRDataSource");
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else if (value instanceof JRDataSourceProvider) {
      return null;
    }
    else {
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    }
    else if (value instanceof Collection) {
      return new JRBeanCollectionDataSource((Collection<?>) value);
    }
    else if (value instanceof Object[]) {
      return new JRBeanArrayDataSource((Object[]) value);
    }
    else {
      throw new IllegalArgumentException("Value [" + value + "] cannot be converted to a JRDataSource");
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.data.JRBeanArrayDataSource

    if (dsCandidate instanceof ResultSet)
      return new JRResultSetDataSource((ResultSet) dsCandidate);

    if (dsCandidate.getClass().isArray())
      return new JRBeanArrayDataSource((Object[]) dsCandidate);


    throw new DJException("class " + dsCandidate.getClass().getName() + " is not supported " +
        "from the DynamicJasper WebWorK result type. Provide a JRDataSource implementation instead");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.