Package com.alibaba.druid.sql
Enum SQLDialect.Quote
- java.lang.Object
-
- java.lang.Enum<SQLDialect.Quote>
-
- com.alibaba.druid.sql.SQLDialect.Quote
-
- All Implemented Interfaces:
Serializable,Comparable<SQLDialect.Quote>
- Enclosing class:
- SQLDialect
public static enum SQLDialect.Quote extends Enum<SQLDialect.Quote>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACK_QUOTEBRACKETS_QUOTEDOUBLE_QUOTESINGLE_QUOTE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static chargetQuote(int features)static booleanisValidQuota(int features, SQLDialect.Quote quote)static SQLDialect.Quoteof(char sign)static intregister(int features, SQLDialect.Quote quote)static SQLDialect.QuotevalueOf(String name)Returns the enum constant of this type with the specified name.static SQLDialect.Quote[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_QUOTE
public static final SQLDialect.Quote SINGLE_QUOTE
-
DOUBLE_QUOTE
public static final SQLDialect.Quote DOUBLE_QUOTE
-
BACK_QUOTE
public static final SQLDialect.Quote BACK_QUOTE
-
BRACKETS_QUOTE
public static final SQLDialect.Quote BRACKETS_QUOTE
-
-
Method Detail
-
values
public static SQLDialect.Quote[] 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 (SQLDialect.Quote c : SQLDialect.Quote.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLDialect.Quote 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
-
register
public static int register(int features, SQLDialect.Quote quote)
-
of
public static SQLDialect.Quote of(char sign)
-
isValidQuota
public static boolean isValidQuota(int features, SQLDialect.Quote quote)
-
getQuote
public static char getQuote(int features)
-
-