Package io.debezium.connector.postgresql
Enum PostgresConnectorConfig.AutoCreateMode
- java.lang.Object
-
- java.lang.Enum<PostgresConnectorConfig.AutoCreateMode>
-
- io.debezium.connector.postgresql.PostgresConnectorConfig.AutoCreateMode
-
- All Implemented Interfaces:
EnumeratedValue,Serializable,Comparable<PostgresConnectorConfig.AutoCreateMode>
- Enclosing class:
- PostgresConnectorConfig
public static enum PostgresConnectorConfig.AutoCreateMode extends Enum<PostgresConnectorConfig.AutoCreateMode> implements EnumeratedValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_TABLESEnable publication for all tables.DISABLEDNo Publication will be created, it's expected the user has already created the publication.FILTEREDEnable publication on a specific set of tables.
-
Constructor Summary
Constructors Modifier Constructor Description privateAutoCreateMode(String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static PostgresConnectorConfig.AutoCreateModeparse(String value)Determine if the supplied value is one of the predefined options.static PostgresConnectorConfig.AutoCreateModeparse(String value, String defaultValue)Determine if the supplied value is one of the predefined options.static PostgresConnectorConfig.AutoCreateModevalueOf(String name)Returns the enum constant of this type with the specified name.static PostgresConnectorConfig.AutoCreateMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final PostgresConnectorConfig.AutoCreateMode DISABLED
No Publication will be created, it's expected the user has already created the publication.
-
ALL_TABLES
public static final PostgresConnectorConfig.AutoCreateMode ALL_TABLES
Enable publication for all tables.
-
FILTERED
public static final PostgresConnectorConfig.AutoCreateMode FILTERED
Enable publication on a specific set of tables.
-
-
Field Detail
-
value
private final String value
-
-
Constructor Detail
-
AutoCreateMode
private AutoCreateMode(String value)
-
-
Method Detail
-
values
public static PostgresConnectorConfig.AutoCreateMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PostgresConnectorConfig.AutoCreateMode c : PostgresConnectorConfig.AutoCreateMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PostgresConnectorConfig.AutoCreateMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
- Specified by:
getValuein interfaceEnumeratedValue
-
parse
public static PostgresConnectorConfig.AutoCreateMode parse(String value)
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not be null- Returns:
- the matching option, or null if no match is found
-
parse
public static PostgresConnectorConfig.AutoCreateMode parse(String value, String defaultValue)
Determine if the supplied value is one of the predefined options.- Parameters:
value- the configuration property value; may not be nulldefaultValue- the default value; may be null- Returns:
- the matching option, or null if no match is found and the non-null default is invalid
-
-