Class PGInsertStatement
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
com.alibaba.druid.sql.dialect.postgresql.ast.stmt.PGInsertStatement
- All Implemented Interfaces:
SQLDbTypedObject,SQLObject,SQLReplaceable,SQLStatement,PGSQLObject,PGSQLStatement
-
Nested Class Summary
Nested classes/interfaces inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertStatement
SQLInsertStatement.ValuesClause -
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertStatement
upsert, withFields inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
columns, columnsString, columnsStringHash, insertBeforeComments, overwrite, partitions, query, tableSourceFields 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 TypeMethodDescriptionvoidaccept0(PGASTVisitor visitor) protected voidaccept0(SQLASTVisitor visitor) voidvoidaddValueCause(SQLInsertStatement.ValuesClause valueClause) clone()voidbooleanbooleanvoidsetDefaultValues(boolean defaultValues) voidvoidsetOnConflictDoNothing(boolean onConflictDoNothing) voidsetOnConflictTarget(List<SQLExpr> onConflictTarget) voidvoidvoidsetReturning(SQLExpr returning) voidMethods inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertStatement
cloneTo, getChildren, getDbType, getWith, isAfterSemi, isUpsert, setAfterSemi, setDbType, setUpsert, setWith, toStringMethods inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
addColumn, addInsertBeforeComment, addPartition, cloneTo, getAlias, getColumns, getColumnsString, getColumnsStringHash, getHint, getInsertBeforeCommentsDirect, getPartitions, getQuery, getTableName, getTableSource, isOverwrite, replace, setAlias, setColumnsString, setHint, setOverwrite, setQuery, setQuery, setTableName, setTableSource, setTableSourceMethods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
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
getChildren, getDbType, isAfterSemi, setAfterSemi, setHeadHints, toLowerCaseString, toParameterizedString, toString, toString
-
Constructor Details
-
PGInsertStatement
public PGInsertStatement()
-
-
Method Details
-
cloneTo
-
getReturning
-
setReturning
-
getValues
- Overrides:
getValuesin classSQLInsertInto
-
setValues
- Overrides:
setValuesin classSQLInsertInto
-
getValuesList
- Overrides:
getValuesListin classSQLInsertInto
-
addValueCause
- Overrides:
addValueCausein classSQLInsertInto
-
isDefaultValues
public boolean isDefaultValues() -
setDefaultValues
public void setDefaultValues(boolean defaultValues) -
accept0
- Overrides:
accept0in classSQLInsertStatement
-
accept0
- Specified by:
accept0in interfacePGSQLObject
-
clone
- Specified by:
clonein interfaceSQLObject- Specified by:
clonein interfaceSQLStatement- Overrides:
clonein classSQLInsertStatement
-
getOnConflictTarget
-
setOnConflictTarget
-
isOnConflictDoNothing
public boolean isOnConflictDoNothing() -
setOnConflictDoNothing
public void setOnConflictDoNothing(boolean onConflictDoNothing) -
getOnConflictUpdateSetItems
-
addConflicUpdateItem
-
getOnConflictConstraint
-
setOnConflictConstraint
-
getOnConflictWhere
-
setOnConflictWhere
-
getOnConflictUpdateWhere
-
setOnConflictUpdateWhere
-
getHeadHintsDirect
- Specified by:
getHeadHintsDirectin interfaceSQLStatement- Overrides:
getHeadHintsDirectin classSQLStatementImpl
-