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
Modifier and TypeFieldDescriptionprotected String
protected long
protected boolean
protected List<SQLAssignItem>
protected SQLSelect
protected SQLExprTableSource
protected final List<SQLInsertStatement.ValuesClause>
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addInsertBeforeComment
(List<String> comments) void
addPartition
(SQLAssignItem partition) void
addValueCause
(SQLInsertStatement.ValuesClause valueClause) abstract SQLInsertInto
clone()
void
getAlias()
long
getHint()
getQuery()
boolean
boolean
void
void
setColumnsString
(String columnsString, long columnsStringHash) void
void
setOverwrite
(boolean overwrite) void
void
setQuery
(SQLSelectQuery query) void
setTableName
(SQLName tableName) void
setTableSource
(SQLName tableName) void
setTableSource
(SQLExprTableSource tableSource) void
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
accept0, getChildren, 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, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, 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
-
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:
replace
in interfaceSQLReplaceable
-
getHint
- Overrides:
getHint
in classSQLObjectImpl
-
setHint
- Overrides:
setHint
in classSQLObjectImpl
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLStatement
- Overrides:
clone
in 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
-