public void processKT(int kostentraeger, LoggingHandler lh, CSVController cSVController) { // this.cSVController = cSVController; configurationController.setCSVController(cSVController); NukeMrcommerceArrangementCity arrCity = configurationController .getArrangementCityJpaController() .findNukeMrcommerceArrangementCity(kostentraeger); if (arrCity != null) { try { NukeMrcommerceItems item = arrCity.getNukeMrcommerceItems(); writeKTSatz(configurationController, arrCity, item); } catch (IOException ex) { } } }
private void writeKTSatz(NukeMrcommerceArrangementCity arrCity, NukeMrcommerceItems item) throws IOException { // int id = arrCity.getNukeMrcommerceEventsArrangementCitiesPK().getArrangementToCityId(); JDCsvWriter writer = configurationController.getCSVController().getWriterKT(); if (writer != null) { configurationController.setProperty( Globals.PREFIXARRCITY + arrCity.getId(), arrCity.getId().toString()); // Versicherungserträge AT VERSICHERUNGSERTRÄGE AT x x 0 1 1 0 x x x x 2 1 String desc = item.getNukeItemName() + " - " + arrCity.getNukeMrcommerceAddress().getDescription(); writer.write("2"); writer.write(arrCity.getId().toString()); writer.write(desc); writer.endRecord(); } }