Class SQLExplainStatement
- java.lang.Object
-
- com.alibaba.druid.sql.ast.SQLObjectImpl
-
- com.alibaba.druid.sql.ast.SQLStatementImpl
-
- com.alibaba.druid.sql.ast.statement.SQLExplainStatement
-
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLStatement
- Direct Known Subclasses:
MySqlExplainStatement,OracleExplainStatement
public class SQLExplainStatement extends SQLStatementImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanauthorizationprotected booleandependencyprotected booleanextendedprotected Stringformatprotected List<SQLCommentHint>hintsprotected booleanoptimizerprotected booleanparenthesisprotected SQLStatementstatementprotected Stringtype-
Fields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHints
-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLExplainStatement()SQLExplainStatement(DbType dbType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor visitor)List<SQLObject>getChildren()StringgetFormat()List<SQLCommentHint>getHints()SQLStatementgetStatement()StringgetType()booleanisAuthorization()booleanisDependency()booleanisExtended()booleanisOptimizer()booleanisParenthesis()voidsetAuthorization(boolean authorization)voidsetDependency(boolean dependency)voidsetExtended(boolean extended)voidsetFormat(String format)voidsetHints(List<SQLCommentHint> hints)voidsetOptimizer(boolean optimizer)voidsetParenthesis(boolean parenthesis)voidsetStatement(SQLStatement statement)voidsetType(String type)-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
clone, cloneTo, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString, toUnformattedString
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSource, setSourceLine
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setParent, setSource
-
-
-
-
Field Detail
-
type
protected String type
-
format
protected String format
-
extended
protected boolean extended
-
dependency
protected boolean dependency
-
authorization
protected boolean authorization
-
optimizer
protected boolean optimizer
-
statement
protected SQLStatement statement
-
hints
protected List<SQLCommentHint> hints
-
parenthesis
protected boolean parenthesis
-
-
Constructor Detail
-
SQLExplainStatement
public SQLExplainStatement()
-
SQLExplainStatement
public SQLExplainStatement(DbType dbType)
-
-
Method Detail
-
getStatement
public SQLStatement getStatement()
-
setStatement
public void setStatement(SQLStatement statement)
-
getType
public String getType()
-
setType
public void setType(String type)
-
accept0
protected void accept0(SQLASTVisitor visitor)
- Overrides:
accept0in classSQLStatementImpl
-
getHints
public List<SQLCommentHint> getHints()
-
setHints
public void setHints(List<SQLCommentHint> hints)
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isExtended
public boolean isExtended()
-
setExtended
public void setExtended(boolean extended)
-
isDependency
public boolean isDependency()
-
setDependency
public void setDependency(boolean dependency)
-
isAuthorization
public boolean isAuthorization()
-
setAuthorization
public void setAuthorization(boolean authorization)
-
isOptimizer
public boolean isOptimizer()
-
setOptimizer
public void setOptimizer(boolean optimizer)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
isParenthesis
public boolean isParenthesis()
-
setParenthesis
public void setParenthesis(boolean parenthesis)
-
-