Class RemoveDebitorExportServiceImpl
java.lang.Object
ch.tocco.nice2.optional.finance.impl.action.debitorexport.RemoveDebitorExportServiceImpl
- All Implemented Interfaces:
RemoveDebitorExportService
@Component
public class RemoveDebitorExportServiceImpl
extends Object
implements RemoveDebitorExportService
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveDebitorExportServiceImpl(CommandExecutor executor, PersistenceService persistenceService) -
Method Summary
Modifier and TypeMethodDescriptionlongcountExportedVouchers(Consumer<QueryBuilderBase<?, ?>> selection) longcountVouchers(Consumer<QueryBuilderBase<?, ?>> selection) intremoveDebitorExport(Consumer<QueryBuilderBase<?, ?>> selection, @Nullable Progress progress) Removes the Debitor_export and the export_date from the exported vouchers of the selection.
-
Constructor Details
-
RemoveDebitorExportServiceImpl
public RemoveDebitorExportServiceImpl(CommandExecutor executor, PersistenceService persistenceService)
-
-
Method Details
-
countVouchers
- Specified by:
countVouchersin interfaceRemoveDebitorExportService
-
countExportedVouchers
- Specified by:
countExportedVouchersin interfaceRemoveDebitorExportService
-
removeDebitorExport
public int removeDebitorExport(Consumer<QueryBuilderBase<?, ?>> selection, @Nullable @Nullable Progress progress) Description copied from interface:RemoveDebitorExportServiceRemoves the Debitor_export and the export_date from the exported vouchers of the selection. Only the keys of the exported vouchers are queried. The vouchers are loaded and updated privileged in blocks, each block in its own context and transaction, so only the vouchers of one block are in memory at a time. If it fails, the earlier blocks stay committed.- Specified by:
removeDebitorExportin interfaceRemoveDebitorExportService- Returns:
- the number of vouchers removed from their Debitor_export
-