DATEV Nuclet – business logic. |
Language: Deutsch · English
Business logic – part of the DATEV Nuclet documentation (export of CSV files for further processing in DATEV (accounting)).
On this page |
This page was machine-translated from German as a first draft and is currently under review. The authoritative source remains the German original (see the language switch above). |
Part of the business logic used in the DATEV Nuclet has to be adapted to the business objects actually used in the target Nuclet.
| Business logic class | Function | Java package | Methods to adjust |
|---|---|---|---|
| DATEVLogic | Logic for DATEV exports | org.nuclet.datev.logic | getWrappedClass() |
Table 4.8.2: Overview, adjustments in the business logic
4.8.2 DATEVLogic
The getWrappedClass() method is used to determine the Java classes of the used reference objects (invoices, customers, turnover) per DATEV export type.
At this point the switch statement must therefore be adjusted accordingly so that for each used export type the Java class of the associated reference object is returned.
/**
* Gets the class of the business object that is related (=reference object) to a given export type
*
* @param exportType Enum-constant, representing an object of type "DATEV Export Type"
*
* @throws BusinessException, in case the given export type is not yet supported
*
*/
protected Class<? extends BusinessObject> getWrappedClass(final ExportType exportType) throws BusinessException
{
// @replace!
//
// switch (exportType) {
// case DATEV_CLIENTBILLING:
// return ClientBilling.class;
// case DATEV_CLIENTS:
// return Client.class;
// case DATEV_TURNOVER:
// return ClientBilling.class;
// default:
// throw new BusinessException("Export type \"" + exportType.getKey() + "\" not yet supported application logic (DTV.481.001)!");
// }
//
switch (exportType) {
default:
throw new BusinessException("Export type \"" + exportType.getKey() + "\" not yet supported application logic (DTV.481.001)!");
}
} |