public static enum PostgresConnectorConfig.IntervalHandlingMode extends Enum<PostgresConnectorConfig.IntervalHandlingMode> implements EnumeratedValue
interval datatype| Enum Constant and Description |
|---|
NUMERIC
Represents interval as inexact microseconds count
|
STRING
Represents interval as ISO 8601 time interval
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue() |
static PostgresConnectorConfig.IntervalHandlingMode |
parse(String value)
Convert mode name into the logical value
|
static PostgresConnectorConfig.IntervalHandlingMode |
parse(String value,
String defaultValue)
Convert mode name into the logical value
|
static PostgresConnectorConfig.IntervalHandlingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PostgresConnectorConfig.IntervalHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostgresConnectorConfig.IntervalHandlingMode NUMERIC
public static final PostgresConnectorConfig.IntervalHandlingMode STRING
private final String value
public static PostgresConnectorConfig.IntervalHandlingMode[] values()
for (PostgresConnectorConfig.IntervalHandlingMode c : PostgresConnectorConfig.IntervalHandlingMode.values()) System.out.println(c);
public static PostgresConnectorConfig.IntervalHandlingMode 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 static PostgresConnectorConfig.IntervalHandlingMode parse(String value)
value - the configuration property value ; may not be nullpublic static PostgresConnectorConfig.IntervalHandlingMode parse(String value, String defaultValue)
value - the configuration property value ; may not be nulldefaultValue - the default value ; may be nullCopyright © 2021 JBoss by Red Hat. All rights reserved.