Package com.alibaba.druid.sql.ast
Class SQLStatementImpl
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
- All Implemented Interfaces:
SQLDbTypedObject
,SQLObject
,SQLStatement
- Direct Known Subclasses:
DB2StatementImpl
,HiveLoadDataStatement
,HiveMsckRepairStatement
,HiveMultiInsertStatement
,MySqlKillStatement
,MySqlStatementImpl
,OdpsAddAccountProviderStatement
,OdpsAddUserStatement
,OdpsListStmt
,OdpsRemoveUserStatement
,OdpsShowChangelogsStatement
,OdpsShowGrantsStmt
,OdpsStatementImpl
,OdpsUnloadStatement
,OracleRunStatement
,OracleStatementImpl
,OscarAlterSchemaStatement
,OscarConnectToStatement
,OscarCreateSchemaStatement
,OscarDropSchemaStatement
,OscarShowStatement
,OscarStartTransactionStatement
,PGAlterSchemaStatement
,PGConnectToStatement
,PGCreateSchemaStatement
,PGDropSchemaStatement
,PGShowStatement
,PGStartTransactionStatement
,PhoenixStatementImpl
,SQLAlterDatabaseStatement
,SQLAlterFunctionStatement
,SQLAlterIndexStatement
,SQLAlterMaterializedViewStatement
,SQLAlterOutlineStatement
,SQLAlterProcedureStatement
,SQLAlterResourceGroupStatement
,SQLAlterSequenceStatement
,SQLAlterSystemGetConfigStatement
,SQLAlterSystemSetConfigStatement
,SQLAlterTableGroupStatement
,SQLAlterTableStatement
,SQLAlterTypeStatement
,SQLAlterViewRenameStatement
,SQLAlterViewStatement
,SQLAnalyzeTableStatement
,SQLArchiveTableStatement
,SQLBackupStatement
,SQLBlockStatement
,SQLBuildTableStatement
,SQLCallStatement
,SQLCancelJobStatement
,SQLCaseStatement
,SQLCloneTableStatement
,SQLCloseStatement
,SQLCommentStatement
,SQLCommitStatement
,SQLCopyFromStatement
,SQLCreateDatabaseStatement
,SQLCreateFunctionStatement
,SQLCreateIndexStatement
,SQLCreateMaterializedViewStatement
,SQLCreateOutlineStatement
,SQLCreateProcedureStatement
,SQLCreateResourceGroupStatement
,SQLCreateRoleStatement
,SQLCreateSequenceStatement
,SQLCreateTableGroupStatement
,SQLCreateTableStatement
,SQLCreateTriggerStatement
,SQLCreateUserStatement
,SQLCreateViewStatement
,SQLDeclareStatement
,SQLDeleteStatement
,SQLDescribeStatement
,SQLDropCatalogStatement
,SQLDropDatabaseStatement
,SQLDropEventStatement
,SQLDropFunctionStatement
,SQLDropIndexStatement
,SQLDropLogFileGroupStatement
,SQLDropMaterializedViewStatement
,SQLDropOutlineStatement
,SQLDropProcedureStatement
,SQLDropResourceGroupStatement
,SQLDropResourceStatement
,SQLDropRoleStatement
,SQLDropSequenceStatement
,SQLDropServerStatement
,SQLDropSynonymStatement
,SQLDropTableGroupStatement
,SQLDropTableSpaceStatement
,SQLDropTableStatement
,SQLDropTriggerStatement
,SQLDropTypeStatement
,SQLDropUserStatement
,SQLDropViewStatement
,SQLDumpStatement
,SQLExplainAnalyzeStatement
,SQLExplainStatement
,SQLExportDatabaseStatement
,SQLExportTableStatement
,SQLExprStatement
,SQLFetchStatement
,SQLForStatement
,SQLIfStatement
,SQLImportDatabaseStatement
,SQLImportTableStatement
,SQLInsertInto
,SQLListResourceGroupStatement
,SQLLoopStatement
,SQLMergeStatement
,SQLOpenStatement
,SQLOptimizeStatement
,SQLPrivilegeStatement
,SQLPurgeLogsStatement
,SQLPurgeRecyclebinStatement
,SQLPurgeTableStatement
,SQLPurgeTemporaryOutputStatement
,SQLRefreshMaterializedViewStatement
,SQLReleaseSavePointStatement
,SQLRenameUserStatement
,SQLReplaceStatement
,SQLRestoreStatement
,SQLReturnStatement
,SQLRollbackStatement
,SQLSavePointStatement
,SQLScriptCommitStatement
,SQLSelectStatement
,SQLServerStatementImpl
,SQLSetStatement
,SQLShowACLStatement
,SQLShowCatalogsStatement
,SQLShowColumnsStatement
,SQLShowCreateMaterializedViewStatement
,SQLShowCreateTableStatement
,SQLShowCreateViewStatement
,SQLShowDatabasesStatement
,SQLShowErrorsStatement
,SQLShowFunctionsStatement
,SQLShowGrantsStatement
,SQLShowHistoryStatement
,SQLShowIndexesStatement
,SQLShowMaterializedViewStatement
,SQLShowOutlinesStatement
,SQLShowPackagesStatement
,SQLShowPartitionsStmt
,SQLShowProcessListStatement
,SQLShowQueryTaskStatement
,SQLShowRecylebinStatement
,SQLShowRolesStatement
,SQLShowRoleStatement
,SQLShowSessionStatement
,SQLShowStatisticListStmt
,SQLShowStatisticStmt
,SQLShowTableGroupsStatement
,SQLShowTablesStatement
,SQLShowUsersStatement
,SQLShowVariantsStatement
,SQLShowViewsStatement
,SQLStartTransactionStatement
,SQLSubmitJobStatement
,SQLSyncMetaStatement
,SQLTruncateStatement
,SQLUpdateStatement
,SQLUseStatement
,SQLWhileStatement
,SQLWhoamiStatement
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected DbType
protected List<SQLCommentHint>
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clone()
boolean
void
setAfterSemi
(boolean afterSemi) void
void
setHeadHints
(List<SQLCommentHint> headHints) toString()
toString
(VisitorFeature... features) Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, 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, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Field Details
-
dbType
-
afterSemi
protected boolean afterSemi -
headHints
-
-
Constructor Details
-
SQLStatementImpl
public SQLStatementImpl() -
SQLStatementImpl
-
-
Method Details
-
getDbType
- Specified by:
getDbType
in interfaceSQLDbTypedObject
- Specified by:
getDbType
in interfaceSQLStatement
-
setDbType
-
toString
- Specified by:
toString
in interfaceSQLStatement
- Overrides:
toString
in classSQLObjectImpl
-
toString
- Specified by:
toString
in interfaceSQLStatement
-
toLowerCaseString
- Specified by:
toLowerCaseString
in interfaceSQLStatement
-
toUnformattedString
-
toParameterizedString
- Specified by:
toParameterizedString
in interfaceSQLStatement
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
getChildren
- Specified by:
getChildren
in interfaceSQLStatement
-
isAfterSemi
public boolean isAfterSemi()- Specified by:
isAfterSemi
in interfaceSQLStatement
-
setAfterSemi
public void setAfterSemi(boolean afterSemi) - Specified by:
setAfterSemi
in interfaceSQLStatement
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLStatement
- Overrides:
clone
in classSQLObjectImpl
-
getHeadHintsDirect
- Specified by:
getHeadHintsDirect
in interfaceSQLStatement
-
setHeadHints
- Specified by:
setHeadHints
in interfaceSQLStatement
-