Package com.orchestranetworks.addon.dint.transformation.conversion
Provides classes and interfaces for creating a conversion transformation.
Example code for DateToString transformation:
-
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")));
-
Class Summary Class Description BooleanToString Represents a transformation definition for converting from boolean to string.ConversionTransformationDefinition<I,O> Represents a transformation function ofTransformationCategory.CONVERSION
.DateTimeToString Represents a transformation definition for converting from date time to string.DateToString Represents a transformation definition for converting from date to string.DecimalToString Represents a transformation definition for converting from decimal to String.IntegerToString Represents a transformation definition for converting from integer to string.StringToBoolean Represents a transformation definition for converting from string to boolean.StringToDate Represents a transformation definition for converting from string to date.StringToDateTime Represents a transformation definition for converting from string to date time.StringToTime Represents a transformation definition for converting from string to time.StringToURI Represents a transformation definition for converting from string to URI.StringUpperCase Represents a transformation definition for string upper case.TimeToString Represents a transformation definition for converting from time to string.