- java.lang.Object
-
- net.sf.jsqlparser.statement.insert.InsertConflictAction
-
- All Implemented Interfaces:
Serializable
public class InsertConflictAction extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description InsertConflictAction(ConflictActionType conflictActionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertConflictActionaddUpdateSet(Column column, Expression expression)InsertConflictActionaddUpdateSet(UpdateSet updateSet)StringBuilderappendTo(StringBuilder builder)ConflictActionTypegetConflictActionType()List<UpdateSet>getUpdateSets()ExpressiongetWhereExpression()voidsetConflictActionType(ConflictActionType conflictActionType)voidsetUpdateSets(List<UpdateSet> updateSets)voidsetWhereExpression(Expression whereExpression)StringtoString()InsertConflictActionwithConflictActionType(ConflictActionType conflictActionType)InsertConflictActionwithUpdateSets(Collection<UpdateSet> updateSets)InsertConflictActionwithUpdateSets(List<UpdateSet> updateSets)InsertConflictActionwithWhereExpression(Expression whereExpression)
-
-
-
Constructor Detail
-
InsertConflictAction
public InsertConflictAction(ConflictActionType conflictActionType)
-
-
Method Detail
-
withUpdateSets
public InsertConflictAction withUpdateSets(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(Collection<UpdateSet> updateSets)
-
getWhereExpression
public Expression getWhereExpression()
-
setWhereExpression
public void setWhereExpression(Expression whereExpression)
-
withWhereExpression
public InsertConflictAction withWhereExpression(Expression whereExpression)
-
appendTo
public StringBuilder appendTo(StringBuilder builder)
-
-