- 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 InsertConflictAction
addUpdateSet(Column column, Expression expression)
InsertConflictAction
addUpdateSet(UpdateSet updateSet)
StringBuilder
appendTo(StringBuilder builder)
ConflictActionType
getConflictActionType()
List<UpdateSet>
getUpdateSets()
Expression
getWhereExpression()
void
setConflictActionType(ConflictActionType conflictActionType)
void
setUpdateSets(List<UpdateSet> updateSets)
void
setWhereExpression(Expression whereExpression)
String
toString()
InsertConflictAction
withConflictActionType(ConflictActionType conflictActionType)
InsertConflictAction
withUpdateSets(Collection<UpdateSet> updateSets)
InsertConflictAction
withUpdateSets(List<UpdateSet> updateSets)
InsertConflictAction
withWhereExpression(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)
-
-