Esempio n. 1
0
  protected static String getUnitName(JRReport report, JRDataset dataset, String nameSuffix) {
    String className;
    if (dataset.isMainDataset()) {
      className = report.getName();
    } else {
      className = report.getName() + "_" + dataset.getName();
    }

    className = JRStringUtil.getJavaIdentifier(className) + nameSuffix;

    return className;
  }
Esempio n. 2
0
 protected static String getUnitName(JRReport report, int crosstabId, String nameSuffix) {
   return JRStringUtil.getJavaIdentifier(report.getName()) + "_CROSSTAB" + crosstabId + nameSuffix;
 }