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

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 (integration.converters.date-to-string.null-value=), the empty string is considered as the null input and defaultValue is applied.

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.

stringToDate()

stringToDate(format)

stringToDate()

stringToDate(yyyy/MM/dd)

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.

stringToDateTime()

stringToDateTime(format)

stringToDateTime()

stringToDateTime(yyyy/MM/dd'T'HH:mm:ss)

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.

stringToNumber()

stringToNumber(defaultValue)

stringToNumber

stringToNumber()

stringToNumber(5)

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.

stringToInteger()

stringToInteger(defaultValue)

stringToInteger(locale)

stringToInteger(locale,defaultValue)

stringToInteger

stringToInteger()

stringToInteger(5)

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.

stringToDecimal()

stringToDecimal(locale)

stringToDecimal(locale,defaultValue)

stringToDecimal(defaultValue)

stringToDecimal

stringToDecimal(2)

stringToDecimal(de)

stringToDecimal(de,2)

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.

stringToDouble()

stringToDouble(defaultValue)

stringToDouble

stringToDouble()

stringToDouble(5)

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 null value looks like. E.g. null, ‘null’, '', …

nullToDefault

nullToDefault(nullValue)

nullToDefault(nullValue,defaultValue)

nullToDefault

nullToDefault(0)

nullToDefault(,0)

defaultValue

Object

integration.converters.null-to-default.default-value

null

If the input matches the nullValue, the defaultValue is returned.

net.pricefx.integration.mapper.converter.StringRight

stringRight

len

Integer

integration.converters.string-right.len

 

Length of the final string trimmed from right.

stringRight(len)

stringRight(2)

net.pricefx.integration.mapper.converter.StringLeft

stringLeft

len

Integer

integration.converters.string-left.len

 

Length of the final string trimmed from left.

stringLeft(len)

stringLeft(2)

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

Property

Default Value

Description

integration.converters.enabled

true

If false, the converters are not started automatically.

 

IntegrationManager version 5.8.0