Enum Identifier.AutoQuoting
- java.lang.Object
-
- java.lang.Enum<Identifier.AutoQuoting>
-
- com.snowflake.connectors.common.object.Identifier.AutoQuoting
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier.AutoQuoting>
- Enclosing class:
- Identifier
public static enum Identifier.AutoQuoting extends Enum<Identifier.AutoQuoting>
Setting for auto quoting on identifier instance creation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
Never adds any additional quotes to the provided String, never escapes any double quote characters.ENABLED
Adds quotes to the given identifier and escapes any double quote characters if the provided String is not all-uppercase (does not match thepattern
).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Identifier.AutoQuoting
valueOf(String name)
Returns the enum constant of this type with the specified name.static Identifier.AutoQuoting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED
public static final Identifier.AutoQuoting ENABLED
Adds quotes to the given identifier and escapes any double quote characters if the provided String is not all-uppercase (does not match thepattern
).
-
DISABLED
public static final Identifier.AutoQuoting DISABLED
Never adds any additional quotes to the provided String, never escapes any double quote characters.
-
-
Method Detail
-
values
public static Identifier.AutoQuoting[] 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 (Identifier.AutoQuoting c : Identifier.AutoQuoting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Identifier.AutoQuoting 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
-
-