public static enum RelationalDatabaseConnectorConfig.DecimalHandlingMode extends Enum<RelationalDatabaseConnectorConfig.DecimalHandlingMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
DOUBLE
Represent
DECIMAL and NUMERIC values as precise double values. |
PRECISE
Represent
DECIMAL and NUMERIC values as precise BigDecimal values, which are
represented in change events in a binary form. |
STRING
Represent
DECIMAL and NUMERIC values as a string values. |
| Modifier and Type | Method and Description |
|---|---|
JdbcValueConverters.DecimalMode |
asDecimalMode() |
String |
getValue()
Returns the string representation of this value
|
static RelationalDatabaseConnectorConfig.DecimalHandlingMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static RelationalDatabaseConnectorConfig.DecimalHandlingMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static RelationalDatabaseConnectorConfig.DecimalHandlingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelationalDatabaseConnectorConfig.DecimalHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationalDatabaseConnectorConfig.DecimalHandlingMode PRECISE
DECIMAL and NUMERIC values as precise BigDecimal values, which are
represented in change events in a binary form. This is precise but difficult to use.public static final RelationalDatabaseConnectorConfig.DecimalHandlingMode STRING
DECIMAL and NUMERIC values as a string values. This is precise, it supports also special values
but the type information is lost.public static final RelationalDatabaseConnectorConfig.DecimalHandlingMode DOUBLE
DECIMAL and NUMERIC values as precise double values. This may be less precise
but is far easier to use.private final String value
public static RelationalDatabaseConnectorConfig.DecimalHandlingMode[] values()
for (RelationalDatabaseConnectorConfig.DecimalHandlingMode c : RelationalDatabaseConnectorConfig.DecimalHandlingMode.values()) System.out.println(c);
public static RelationalDatabaseConnectorConfig.DecimalHandlingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
EnumeratedValuegetValue in interface EnumeratedValuepublic JdbcValueConverters.DecimalMode asDecimalMode()
public static RelationalDatabaseConnectorConfig.DecimalHandlingMode parse(String value)
value - the configuration property value; may not be nullpublic static RelationalDatabaseConnectorConfig.DecimalHandlingMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.