Converters
Purpose
Converters are used in mappers to convert types.
Configuration
For details see mappers.
Auto Configuration
The following converters are started by auto-configuration as Spring beans. If a bean with the same name and the same type exists in the Spring context, this converter is not started.
Class | Bean Name | Option | Option Type | Configuration Property | Default Value | Description | Instantiation options for converterExpression | converterExpression Examples |
---|---|---|---|---|---|---|---|---|
net.pricefx.integration.mapper.converter.DateToString | dateToString | defaultValue | String | integration.converters.date-to-string.default-value | Value to be used if a value from data is missing. | N/A | N/A | |
format | String | integration.converters.date-to-string.format | yyyy-MM-dd | Format of the output string. See Supported formats for possible values. | ||||
inputFormat | String | integration.converters.date-to-string.input-format | yyyy-MM-dd | Format of the input if the input is a stringified date. See Supported formats for possible values. | ||||
nullValue | String | integration.converters.date-to-string.null-value | null | Determines what is considered as a null value for checking and deciding a default value. If not filled, null is considered as a null input, thus defaultValue is applied. If e.g. filled with an empty string ( | ||||
net.pricefx.integration.mapper.converter.StringToDate | stringToDate | defaultValue | LocalDate | integration.converters.string-to-date.default-value | Value to be used if a value from data is missing. |
|
| |
format | String | integration.converters.string-to-date.format | yyyy-MM-dd | See Supported formats for possible values. | ||||
net.pricefx.integration.mapper.converter.StringToDateTime | stringToDateTime | defaultValue | DateTime | integration.converters.string-to-date-time.default-value | Value to be used if a value from data is missing. |
|
| |
format | String | integration.converters.string-to-date-time.format | yyyy-MM-dd'T'HH:mm:ss | See Supported formats for possible values. | ||||
inputTimeZone | DateTimeZone | integration.converters.string-to-date-time.input-time-zone | ||||||
outputTimeZone | DateTimeZone | integration.converters.string-to-date-time.output-time-zone | UTC | |||||
net.pricefx.integration.mapper.converter.StringToNumber | stringToNumber | defaultValue | BigInteger | integration.converters.string-to-number.default-value | Value to be used if a value from data is missing. |
|
| |
net.pricefx.integration.mapper.converter.StringToInteger | stringToInteger | defaultValue | Integer | integration.converters.string-to-integer.default-value | Value to be used if a value from data is missing. |
|
| |
locale | String | integration.converters.string-to-integer.locale |  | Determines the decimal and thousands separator. For details see the Oracle documentation. See Supported locales for possible values (column Locale ID). | ||||
net.pricefx.integration.mapper.converter.StringToDecimal | stringToDecimal | defaultValue | BigDecimal | integration.converters.string-to-decimal.default-value | Value to be used if a value from data is missing. |
|
| |
locale | String | integration.converters.string-to-decimal.locale | Determines the decimal and thousands separator. For details see the Oracle documentation. See Supported locales for possible values (column Locale ID). | |||||
roundingMode | RoundingMode | N/A | HALF_EVEN | Specifies a rounding behavior for numerical operations capable of discarding precision. For details see the Oracle documentation. | ||||
precision | Integer | N/A | Number of digits in the unscaled value. | |||||
net.pricefx.integration.mapper.converter.StringToDouble | stringToDouble | defaultValue | Double | integration.converters.string-to-double.default-value | Value to be used if a value from data is missing. |
|
| |
net.pricefx.integration.mapper.converter.EmptyStringToNull | emptyStringToNull | Â | N/A | N/A | N/A | |||
net.pricefx.integration.mapper.converter.NullToDefault | nullToDefault | nullValue | Object | integration.converters.null-to-default.null-value | null | Defines what a |
|
|
defaultValue | Object | integration.converters.null-to-default.default-value | null | If the input matches the | ||||
net.pricefx.integration.mapper.converter.StringRight | stringRight | len | Integer | integration.converters.string-right.len | Â | Length of the final string trimmed from right. |
|
|
net.pricefx.integration.mapper.converter.StringLeft | stringLeft | len | Integer | integration.converters.string-left.len | Â | Length of the final string trimmed from left. |
|
|
net.pricefx.integration.mapper.converter.DateTimeToString | dateTimeToString | defaultValue | String | integration.converters.date-time-to-string.default-value | Value to be used if a value from data is missing. | N/A | N/A | |
format | String | integration.converters.date-time-to-string.format | yyyy-MM-dd'T'HH:mm:ss | See Supported formats for possible values. | ||||
outputTimeZone | DateTimeZone | integration.converters.date-time-to-string.output-time-zone | UTC | |||||
net.pricefx.integration.mapper.converter.DecimalToString | decimalToString | defaultValue | String | integration.converters.decimal-to-string.default-value | Value to be used if a value from data is missing. | N/A | N/A | |
format | NumberFormat | integration.converters.decimal-to-string.format | ||||||
locale | Locale | integration.converters.decimal-to-string.locale | server locale | Determines the decimal and thousands separator. For details see the Oracle documentation. See Supported locales for possible values (column Locale ID). | ||||
pattern | String | integration.converters.decimal-to-string.pattern | Controls display of leading and trailing zeros, prefixes and suffixes, grouping (thousands) separators and the decimal separator. For details see the Oracle documentation. |
Â
Property | Default Value | Description |
---|---|---|
integration.converters.enabled | true | If false, the converters are not started automatically. |
Â
IntegrationManager version 5.8.0