- java.lang.Object
-
- net.sf.jsqlparser.statement.insert.InsertConflictAction
-
- All Implemented Interfaces:
java.io.Serializable
public class InsertConflictAction extends java.lang.Object implements java.io.Serializable
https://www.postgresql.org/docs/current/sql-insert.htmlconflict_action is one of: DO NOTHING DO UPDATE SET { column_name = { expression | DEFAULT } | ( column_name [, ...] ) = [ ROW ] ( { expression | DEFAULT } [, ...] ) | ( column_name [, ...] ) = ( sub-SELECT ) } [, ...] [ WHERE condition ]
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConflictActionType
conflictActionType
private java.util.List<UpdateSet>
updateSets
(package private) Expression
whereExpression
-
Constructor Summary
Constructors Constructor Description InsertConflictAction(ConflictActionType conflictActionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertConflictAction
addUpdateSet(Column column, Expression expression)
InsertConflictAction
addUpdateSet(UpdateSet updateSet)
java.lang.StringBuilder
appendTo(java.lang.StringBuilder builder)
ConflictActionType
getConflictActionType()
java.util.List<UpdateSet>
getUpdateSets()
Expression
getWhereExpression()
void
setConflictActionType(ConflictActionType conflictActionType)
void
setUpdateSets(java.util.List<UpdateSet> updateSets)
void
setWhereExpression(Expression whereExpression)
java.lang.String
toString()
InsertConflictAction
withConflictActionType(ConflictActionType conflictActionType)
InsertConflictAction
withUpdateSets(java.util.Collection<UpdateSet> updateSets)
InsertConflictAction
withUpdateSets(java.util.List<UpdateSet> updateSets)
InsertConflictAction
withWhereExpression(Expression whereExpression)
-
-
-
Field Detail
-
conflictActionType
ConflictActionType conflictActionType
-
whereExpression
Expression whereExpression
-
updateSets
private java.util.List<UpdateSet> updateSets
-
-
Constructor Detail
-
InsertConflictAction
public InsertConflictAction(ConflictActionType conflictActionType)
-
-
Method Detail
-
getUpdateSets
public java.util.List<UpdateSet> getUpdateSets()
-
setUpdateSets
public void setUpdateSets(java.util.List<UpdateSet> updateSets)
-
withUpdateSets
public InsertConflictAction withUpdateSets(java.util.List<UpdateSet> updateSets)
-
getConflictActionType
public ConflictActionType getConflictActionType()
-
setConflictActionType
public void setConflictActionType(ConflictActionType conflictActionType)
-
withConflictActionType
public InsertConflictAction withConflictActionType(ConflictActionType conflictActionType)
-
addUpdateSet
public InsertConflictAction addUpdateSet(Column column, Expression expression)
-
addUpdateSet
public InsertConflictAction addUpdateSet(UpdateSet updateSet)
-
withUpdateSets
public InsertConflictAction withUpdateSets(java.util.Collection<UpdateSet> updateSets)
-
getWhereExpression
public Expression getWhereExpression()
-
setWhereExpression
public void setWhereExpression(Expression whereExpression)
-
withWhereExpression
public InsertConflictAction withWhereExpression(Expression whereExpression)
-
appendTo
public java.lang.StringBuilder appendTo(java.lang.StringBuilder builder)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-