예제 #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;
  }
예제 #2
0
 protected static String getUnitName(JRReport report, int crosstabId, String nameSuffix) {
   return JRStringUtil.getJavaIdentifier(report.getName()) + "_CROSSTAB" + crosstabId + nameSuffix;
 }