Class SQLInsertInto
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLStatementImpl
com.alibaba.druid.sql.ast.statement.SQLInsertInto
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement
- Direct Known Subclasses:
HiveInsert,OracleMultiInsertStatement.InsertIntoClause,SQLInsertStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected longprotected booleanprotected List<SQLAssignItem>protected SQLSelectprotected SQLExprTableSourceprotected final List<SQLInsertStatement.ValuesClause>Fields 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 TypeMethodDescriptionvoidvoidaddInsertBeforeComment(List<String> comments) voidaddPartition(SQLAssignItem partition) voidaddValueCause(SQLInsertStatement.ValuesClause valueClause) abstract SQLInsertIntoclone()voidgetAlias()longgetHint()getQuery()booleanbooleanvoidvoidsetColumnsString(String columnsString, long columnsStringHash) voidvoidsetOverwrite(boolean overwrite) voidvoidsetQuery(SQLSelectQuery query) voidsetTableName(SQLName tableName) voidsetTableSource(SQLName tableName) voidsetTableSource(SQLExprTableSource tableSource) voidMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
accept0, getChildren, getDbType, getHeadHintsDirect, isAfterSemi, setAfterSemi, setDbType, setHeadHints, toLowerCaseString, toParameterizedString, toString, 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, setParent
-
Field Details
-
insertBeforeComments
-
tableSource
-
columns
-
columnsString
-
columnsStringHash
protected transient long columnsStringHash -
query
-
valuesList
-
overwrite
protected boolean overwrite -
partitions
-
-
Constructor Details
-
SQLInsertInto
public SQLInsertInto()
-
-
Method Details
-
cloneTo
-
addInsertBeforeComment
-
getInsertBeforeCommentsDirect
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
getHint
- Overrides:
getHintin classSQLObjectImpl
-
setHint
- Overrides:
setHintin classSQLObjectImpl
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getAlias
-
setAlias
-
getTableSource
-
setTableSource
-
getTableName
-
setTableName
-
setTableSource
-
getQuery
-
setQuery
-
setQuery
-
getColumns
-
addColumn
-
getValues
-
setValues
-
getValuesList
-
addValueCause
-
getColumnsString
-
getColumnsStringHash
public long getColumnsStringHash() -
setColumnsString
-
isOverwrite
public boolean isOverwrite() -
setOverwrite
public void setOverwrite(boolean overwrite) -
addPartition
-
getPartitions
-