Class SQLInsertStatement
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLInsertInto
com.alibaba.druid.sql.ast.statement.SQLInsertStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement
- Direct Known Subclasses:
HiveInsertStatement,MySqlInsertStatement,OracleInsertStatement,OscarInsertStatement,PGInsertStatement,SQLServerInsertStatement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
columns, columnsString, columnsStringHash, insertBeforeComments, overwrite, partitions, query, tableSource, valuesListFields inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
afterSemi, dbType, headHintsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()voidgetWith()booleanbooleanisUpsert()voidsetAfterSemi(boolean afterSemi) voidvoidsetUpsert(boolean upsert) voidsetWith(SQLWithSubqueryClause with) toString()Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
addColumn, addInsertBeforeComment, addPartition, addValueCause, cloneTo, getAlias, getColumns, getColumnsString, getColumnsStringHash, getHint, getInsertBeforeCommentsDirect, getPartitions, getQuery, getTableName, getTableSource, getValues, getValuesList, isOverwrite, replace, setAlias, setColumnsString, setHint, setOverwrite, setQuery, setQuery, setTableName, setTableSource, setTableSource, setValuesMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
getHeadHintsDirect, setHeadHints, toLowerCaseString, toParameterizedString, toString, toUnformattedStringMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent, setSourceColumn, setSourceLineMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, setParentMethods inherited from interface com.alibaba.druid.sql.ast.SQLStatement
getHeadHintsDirect, setHeadHints, toLowerCaseString, toParameterizedString, toString
-
Field Details
-
with
-
upsert
protected boolean upsert
-
-
Constructor Details
-
SQLInsertStatement
public SQLInsertStatement()
-
-
Method Details
-
cloneTo
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Specified by:
clonein classSQLInsertInto
-
accept0
- Overrides:
accept0in classSQLStatementImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLStatement- Overrides:
getChildrenin classSQLStatementImpl
-
isUpsert
public boolean isUpsert() -
setUpsert
public void setUpsert(boolean upsert) -
getDbType
- Specified by:
getDbTypein interfaceSQLDbTypedObject- Specified by:
getDbTypein interfaceSQLStatement- Overrides:
getDbTypein classSQLStatementImpl
-
setDbType
- Overrides:
setDbTypein classSQLStatementImpl
-
isAfterSemi
public boolean isAfterSemi()- Specified by:
isAfterSemiin interfaceSQLStatement- Overrides:
isAfterSemiin classSQLStatementImpl
-
setAfterSemi
public void setAfterSemi(boolean afterSemi) - Specified by:
setAfterSemiin interfaceSQLStatement- Overrides:
setAfterSemiin classSQLStatementImpl
-
getWith
-
setWith
-
toString
- Specified by:
toStringin interfaceSQLStatement- Overrides:
toStringin classSQLStatementImpl
-