Package com.alibaba.druid.sql.parser
Enum SQLParserFeature
- java.lang.Object
-
- java.lang.Enum<SQLParserFeature>
-
- com.alibaba.druid.sql.parser.SQLParserFeature
-
- All Implemented Interfaces:
Serializable,Comparable<SQLParserFeature>
public enum SQLParserFeature extends Enum<SQLParserFeature>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description intmask
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intconfig(int features, SQLParserFeature feature, boolean state)static booleanisEnabled(int features, SQLParserFeature feature)static intof(SQLParserFeature... features)static SQLParserFeaturevalueOf(String name)Returns the enum constant of this type with the specified name.static SQLParserFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KeepInsertValueClauseOriginalString
public static final SQLParserFeature KeepInsertValueClauseOriginalString
-
KeepSelectListOriginalString
public static final SQLParserFeature KeepSelectListOriginalString
-
UseInsertColumnsCache
public static final SQLParserFeature UseInsertColumnsCache
-
EnableSQLBinaryOpExprGroup
public static final SQLParserFeature EnableSQLBinaryOpExprGroup
-
OptimizedForParameterized
public static final SQLParserFeature OptimizedForParameterized
-
OptimizedForForParameterizedSkipValue
public static final SQLParserFeature OptimizedForForParameterizedSkipValue
-
KeepComments
public static final SQLParserFeature KeepComments
-
SkipComments
public static final SQLParserFeature SkipComments
-
StrictForWall
public static final SQLParserFeature StrictForWall
-
TDDLHint
public static final SQLParserFeature TDDLHint
-
DRDSAsyncDDL
public static final SQLParserFeature DRDSAsyncDDL
-
DRDSBaseline
public static final SQLParserFeature DRDSBaseline
-
InsertReader
public static final SQLParserFeature InsertReader
-
IgnoreNameQuotes
public static final SQLParserFeature IgnoreNameQuotes
-
KeepNameQuotes
public static final SQLParserFeature KeepNameQuotes
-
SelectItemGenerateAlias
public static final SQLParserFeature SelectItemGenerateAlias
-
PipesAsConcat
public static final SQLParserFeature PipesAsConcat
-
InsertValueCheckType
public static final SQLParserFeature InsertValueCheckType
-
InsertValueNative
public static final SQLParserFeature InsertValueNative
-
EnableCurrentTimeExpr
public static final SQLParserFeature EnableCurrentTimeExpr
-
EnableCurrentUserExpr
public static final SQLParserFeature EnableCurrentUserExpr
-
KeepSourceLocation
public static final SQLParserFeature KeepSourceLocation
-
SupportUnicodeCodePoint
public static final SQLParserFeature SupportUnicodeCodePoint
-
PrintSQLWhileParsingFailed
public static final SQLParserFeature PrintSQLWhileParsingFailed
-
EnableMultiUnion
public static final SQLParserFeature EnableMultiUnion
-
Spark
public static final SQLParserFeature Spark
-
Presto
public static final SQLParserFeature Presto
-
MySQLSupportStandardComment
public static final SQLParserFeature MySQLSupportStandardComment
-
Template
public static final SQLParserFeature Template
-
-
Method Detail
-
values
public static SQLParserFeature[] 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 (SQLParserFeature c : SQLParserFeature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SQLParserFeature 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
-
isEnabled
public static boolean isEnabled(int features, SQLParserFeature feature)
-
config
public static int config(int features, SQLParserFeature feature, boolean state)
-
of
public static int of(SQLParserFeature... features)
-
-