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, with
Fields inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertInto
columns, columnsString, columnsStringHash, insertBeforeComments, overwrite, partitions, query, tableSource
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
accept0
(PGASTVisitor visitor) protected void
accept0
(SQLASTVisitor visitor) void
void
addValueCause
(SQLInsertStatement.ValuesClause valueClause) clone()
void
boolean
boolean
void
setDefaultValues
(boolean defaultValues) void
void
setOnConflictDoNothing
(boolean onConflictDoNothing) void
setOnConflictTarget
(List<SQLExpr> onConflictTarget) void
void
void
setReturning
(SQLExpr returning) void
Methods inherited from class com.alibaba.druid.sql.ast.statement.SQLInsertStatement
cloneTo, getChildren, getDbType, getWith, isAfterSemi, isUpsert, setAfterSemi, setDbType, setUpsert, setWith, toString
Methods 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, setTableSource
Methods inherited from class com.alibaba.druid.sql.ast.SQLStatementImpl
setHeadHints, toLowerCaseString, toParameterizedString, 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
Methods 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:
getValues
in classSQLInsertInto
-
setValues
- Overrides:
setValues
in classSQLInsertInto
-
getValuesList
- Overrides:
getValuesList
in classSQLInsertInto
-
addValueCause
- Overrides:
addValueCause
in classSQLInsertInto
-
isDefaultValues
public boolean isDefaultValues() -
setDefaultValues
public void setDefaultValues(boolean defaultValues) -
accept0
- Overrides:
accept0
in classSQLInsertStatement
-
accept0
- Specified by:
accept0
in interfacePGSQLObject
-
clone
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in interfaceSQLStatement
- Overrides:
clone
in classSQLInsertStatement
-
getOnConflictTarget
-
setOnConflictTarget
-
isOnConflictDoNothing
public boolean isOnConflictDoNothing() -
setOnConflictDoNothing
public void setOnConflictDoNothing(boolean onConflictDoNothing) -
getOnConflictUpdateSetItems
-
addConflicUpdateItem
-
getOnConflictConstraint
-
setOnConflictConstraint
-
getOnConflictWhere
-
setOnConflictWhere
-
getOnConflictUpdateWhere
-
setOnConflictUpdateWhere
-
getHeadHintsDirect
- Specified by:
getHeadHintsDirect
in interfaceSQLStatement
- Overrides:
getHeadHintsDirect
in classSQLStatementImpl
-