Package com.orchestranetworks.addon.dint.transformation.conversion

Provides classes and interfaces for creating a conversion transformation.

Example code for DateToString transformation:

  1. Create a mapping that allows to convert from the string to date data type:

                    TableMapping<CSVField, EBXField> tableMapping = TableMapping.of(sourceTable, targetTable);
                    CSVTable csvTable = sourceTable.getTable();
                    EBXTable ebxTable = targetTable.getTable();
                    
                    tableMapping.fromSourceFieldStep(csvTable.get("date_string"))
                            .convert(StringToDate.getInstance())
                            .param(StringToDate.FORMAT_PATTERN, "dd-MM-yyyy")
                            .toField(ebxTable.get(Path.parse("/date")));