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