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:
BigQueryAssertStatement,BigQueryCreateModelStatement,CKAlterTableStatement,DB2CreateSchemaStatement,DB2DropSchemaStatement,DB2StatementImpl,HiveAddJarStatement,HiveLoadDataStatement,HiveMsckRepairStatement,HiveMultiInsertStatement,MySqlKillStatement,MySqlStatementImpl,OdpsAddAccountProviderStatement,OdpsAddUserStatement,OdpsListStmt,OdpsRemoveUserStatement,OdpsShowChangelogsStatement,OdpsShowGrantsStmt,OdpsStatementImpl,OdpsUnloadStatement,OracleRunStatement,OracleStatementImpl,OscarAlterSchemaStatement,OscarConnectToStatement,OscarCreateSchemaStatement,OscarDropSchemaStatement,OscarShowStatement,OscarStartTransactionStatement,PGAlterDatabaseStatement,PGAlterSchemaStatement,PGAnalyzeStatement,PGConnectToStatement,PGCreateDatabaseStatement,PGCreateSchemaStatement,PGDoStatement,PGDropSchemaStatement,PGEndTransactionStatement,PGShowStatement,PGStartTransactionStatement,PGVacuumStatement,PhoenixStatementImpl,PrestoAlterSchemaStatement,PrestoDeallocatePrepareStatement,PrestoExecuteStatement,PrestoPrepareStatement,SparkCacheTableStatement,SparkCreateScanStatement,SQLAlterDatabaseStatement,SQLAlterFunctionStatement,SQLAlterIndexStatement,SQLAlterMaterializedViewStatement,SQLAlterOutlineStatement,SQLAlterProcedureStatement,SQLAlterResourceGroupStatement,SQLAlterSequenceStatement,SQLAlterSystemGetConfigStatement,SQLAlterSystemSetConfigStatement,SQLAlterTableGroupStatement,SQLAlterTableStatement,SQLAlterTypeStatement,SQLAlterViewRenameStatement,SQLAlterViewStatement,SQLAnalyzeTableStatement,SQLArchiveTableStatement,SQLBackupStatement,SQLBeginStatement,SQLBlockStatement,SQLBuildTableStatement,SQLCallStatement,SQLCancelJobStatement,SQLCaseStatement,SQLCloneTableStatement,SQLCloseStatement,SQLCommentStatement,SQLCommitStatement,SQLCommitTransactionStatement,SQLComputeIncrementalStatsStatement,SQLContinueStatement,SQLCopyFromStatement,SQLCostStatement,SQLCreateDatabaseStatement,SQLCreateFunctionStatement,SQLCreateIndexStatement,SQLCreateMaterializedViewStatement,SQLCreateOutlineStatement,SQLCreateProcedureStatement,SQLCreateResourceGroupStatement,SQLCreateRoleStatement,SQLCreateSequenceStatement,SQLCreateTableGroupStatement,SQLCreateTableStatement,SQLCreateTriggerStatement,SQLCreateUserStatement,SQLCreateViewStatement,SQLDeclareStatement,SQLDeleteStatement,SQLDescribeStatement,SQLDropCatalogStatement,SQLDropDatabaseStatement,SQLDropEventStatement,SQLDropFunctionStatement,SQLDropIndexStatement,SQLDropLogFileGroupStatement,SQLDropMaterializedViewStatement,SQLDropOfflineModelStatement,SQLDropOutlineStatement,SQLDropProcedureStatement,SQLDropResourceGroupStatement,SQLDropResourceStatement,SQLDropRoleStatement,SQLDropSequenceStatement,SQLDropServerStatement,SQLDropSynonymStatement,SQLDropTableGroupStatement,SQLDropTableSpaceStatement,SQLDropTableStatement,SQLDropTriggerStatement,SQLDropTypeStatement,SQLDropUserStatement,SQLDropViewStatement,SQLDumpStatement,SQLExceptionStatement,SQLExecuteImmediateStatement,SQLExplainAnalyzeStatement,SQLExplainStatement,SQLExportDatabaseStatement,SQLExportTableStatement,SQLExprStatement,SQLFetchStatement,SQLForStatement,SQLGetDiagnosticsStatement,SQLIfStatement,SQLImportDatabaseStatement,SQLImportTableStatement,SQLInsertInto,SQLLeaveStatement,SQLListResourceGroupStatement,SQLLoopStatement,SQLMergeStatement,SQLOpenStatement,SQLOptimizeStatement,SQLPrivilegeStatement,SQLPurgeLogsStatement,SQLPurgeRecyclebinStatement,SQLPurgeTableStatement,SQLPurgeTemporaryOutputStatement,SQLRaiseStatement,SQLRefreshMaterializedViewStatement,SQLRefreshTableStatement,SQLReleaseSavePointStatement,SQLRenameUserStatement,SQLReplaceStatement,SQLResetStatement,SQLRestoreStatement,SQLReturnStatement,SQLRollbackStatement,SQLRollbackTransactionStatement,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,StarRocksCreateResourceStatement
public abstract class SQLStatementImpl extends SQLObjectImpl implements SQLStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanafterSemiprotected DbTypedbTypeprotected List<SQLCommentHint>headHints-
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
-
Constructor Summary
Constructors Constructor Description SQLStatementImpl()SQLStatementImpl(DbType dbType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccept0(SQLASTVisitor v)SQLStatementclone()protected voidcloneTo(SQLStatementImpl x)List<SQLObject>getChildren()DbTypegetDbType()List<SQLCommentHint>getHeadHintsDirect()booleanisAfterSemi()voidsetAfterSemi(boolean afterSemi)voidsetDbType(DbType dbType)voidsetHeadHints(List<SQLCommentHint> headHints)StringtoLowerCaseString()StringtoParameterizedString()StringtoString()StringtoString(VisitorFeature... features)StringtoUnformattedString()-
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
-
dbType
protected DbType dbType
-
afterSemi
protected boolean afterSemi
-
headHints
protected List<SQLCommentHint> headHints
-
-
Constructor Detail
-
SQLStatementImpl
public SQLStatementImpl()
-
SQLStatementImpl
public SQLStatementImpl(DbType dbType)
-
-
Method Detail
-
getDbType
public DbType getDbType()
- Specified by:
getDbTypein interfaceSQLDbTypedObject- Specified by:
getDbTypein interfaceSQLStatement
-
setDbType
public void setDbType(DbType dbType)
-
toString
public String toString()
- Specified by:
toStringin interfaceSQLStatement- Overrides:
toStringin classSQLObjectImpl
-
toString
public String toString(VisitorFeature... features)
- Specified by:
toStringin interfaceSQLStatement
-
toLowerCaseString
public String toLowerCaseString()
- Specified by:
toLowerCaseStringin interfaceSQLStatement
-
toUnformattedString
public String toUnformattedString()
-
toParameterizedString
public String toParameterizedString()
- Specified by:
toParameterizedStringin interfaceSQLStatement
-
accept0
protected void accept0(SQLASTVisitor v)
- Specified by:
accept0in classSQLObjectImpl
-
getChildren
public List<SQLObject> getChildren()
- Specified by:
getChildrenin interfaceSQLStatement
-
isAfterSemi
public boolean isAfterSemi()
- Specified by:
isAfterSemiin interfaceSQLStatement
-
setAfterSemi
public void setAfterSemi(boolean afterSemi)
- Specified by:
setAfterSemiin interfaceSQLStatement
-
clone
public SQLStatement clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLObjectImpl
-
cloneTo
protected void cloneTo(SQLStatementImpl x)
-
getHeadHintsDirect
public List<SQLCommentHint> getHeadHintsDirect()
- Specified by:
getHeadHintsDirectin interfaceSQLStatement
-
setHeadHints
public void setHeadHints(List<SQLCommentHint> headHints)
- Specified by:
setHeadHintsin interfaceSQLStatement
-
-