public static enum MySqlConnectorConfig.DecimalHandlingMode extends Enum<MySqlConnectorConfig.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. |
| Modifier and Type | Method and Description |
|---|---|
JdbcValueConverters.DecimalMode |
asDecimalMode() |
String |
getValue() |
static MySqlConnectorConfig.DecimalHandlingMode |
parse(String value)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.DecimalHandlingMode |
parse(String value,
String defaultValue)
Determine if the supplied value is one of the predefined options.
|
static MySqlConnectorConfig.DecimalHandlingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MySqlConnectorConfig.DecimalHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MySqlConnectorConfig.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 MySqlConnectorConfig.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 MySqlConnectorConfig.DecimalHandlingMode[] values()
for (MySqlConnectorConfig.DecimalHandlingMode c : MySqlConnectorConfig.DecimalHandlingMode.values()) System.out.println(c);
public static MySqlConnectorConfig.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()
getValue in interface EnumeratedValuepublic JdbcValueConverters.DecimalMode asDecimalMode()
public static MySqlConnectorConfig.DecimalHandlingMode parse(String value)
value - the configuration property value; may not be nullpublic static MySqlConnectorConfig.DecimalHandlingMode parse(String value, String defaultValue)
value - the configuration property value; may not be nulldefaultValue - the default value; may be nullCopyright © 2017 JBoss by Red Hat. All rights reserved.