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
public abstract class SQLInsertInto extends SQLStatementImpl implements SQLReplaceable
-
-
Field Summary
Fields Modifier and Type Field Description protected List<SQLExpr>columnsprotected StringcolumnsStringprotected longcolumnsStringHashprotected List<String>insertBeforeCommentsprotected booleanoverwriteprotected List<SQLAssignItem>partitionsprotected SQLSelectqueryprotected SQLExprTableSourcetableSourceprotected List<SQLInsertStatement.ValuesClause>valuesList-
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
Constructors Constructor Description SQLInsertInto()
-
Method Summary
-
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
accept0, cloneTo, 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, cloneTo, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, 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
-
tableSource
protected SQLExprTableSource tableSource
-
columnsString
protected transient String columnsString
-
columnsStringHash
protected transient long columnsStringHash
-
query
protected SQLSelect query
-
valuesList
protected final List<SQLInsertStatement.ValuesClause> valuesList
-
overwrite
protected boolean overwrite
-
partitions
protected List<SQLAssignItem> partitions
-
-
Method Detail
-
cloneTo
public void cloneTo(SQLInsertInto x)
-
replace
public boolean replace(SQLExpr expr, SQLExpr target)
- Specified by:
replacein interfaceSQLReplaceable
-
getHint
public SQLCommentHint getHint()
- Overrides:
getHintin classSQLObjectImpl
-
setHint
public void setHint(SQLCommentHint x)
- Overrides:
setHintin classSQLObjectImpl
-
clone
public abstract SQLInsertInto clone()
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLStatementImpl
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getTableSource
public SQLExprTableSource getTableSource()
-
setTableSource
public void setTableSource(SQLExprTableSource tableSource)
-
getTableName
public SQLName getTableName()
-
setTableName
public void setTableName(SQLName tableName)
-
setTableSource
public void setTableSource(SQLName tableName)
-
getQuery
public SQLSelect getQuery()
-
setQuery
public void setQuery(SQLSelectQuery query)
-
setQuery
public void setQuery(SQLSelect query)
-
addColumn
public void addColumn(SQLExpr column)
-
getValues
public SQLInsertStatement.ValuesClause getValues()
-
setValues
public void setValues(SQLInsertStatement.ValuesClause values)
-
getValuesList
public List<SQLInsertStatement.ValuesClause> getValuesList()
-
addValueCause
public void addValueCause(SQLInsertStatement.ValuesClause valueClause)
-
getColumnsString
public String getColumnsString()
-
getColumnsStringHash
public long getColumnsStringHash()
-
setColumnsString
public void setColumnsString(String columnsString, long columnsStringHash)
-
isOverwrite
public boolean isOverwrite()
-
setOverwrite
public void setOverwrite(boolean overwrite)
-
addPartition
public void addPartition(SQLAssignItem partition)
-
getPartitions
public List<SQLAssignItem> getPartitions()
-
-