Class InsertConflictTarget
java.lang.Object
net.sf.jsqlparser.statement.insert.InsertConflictTarget
- All Implemented Interfaces:
Serializable
https://www.postgresql.org/docs/current/sql-insert.html
conflict_target can be one of: ( { index_column_name | ( index_expression ) } [ COLLATE collation ] [ opclass ] [, ...] ) [ WHERE index_predicate ] ON CONSTRAINT constraint_nameCurrently, COLLATE is not supported yet.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
(package private) Expression
(package private) Expression
-
Constructor Summary
ConstructorsConstructorDescriptionInsertConflictTarget
(String indexColumnName, Expression indexExpression, Expression whereExpression, String constraintName) InsertConflictTarget
(Collection<String> indexColumnName, Expression indexExpression, Expression whereExpression, String constraintName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAllIndexColumnNames
(Collection<String> indexColumnName) boolean
addIndexColumnName
(String indexColumnName) appendTo
(StringBuilder builder) Deprecated.getIndexColumnName
(int index) void
setConstraintName
(String constraintName) void
setIndexExpression
(Expression indexExpression) void
setWhereExpression
(Expression whereExpression) toString()
withConstraintName
(String constraintName) withIndexColumnName
(String indexColumnName) withIndexExpression
(Expression indexExpression) withWhereExpression
(Expression whereExpression)
-
Field Details
-
indexColumnNames
-
indexExpression
Expression indexExpression -
whereExpression
Expression whereExpression -
constraintName
String constraintName
-
-
Constructor Details
-
InsertConflictTarget
public InsertConflictTarget(String indexColumnName, Expression indexExpression, Expression whereExpression, String constraintName) -
InsertConflictTarget
public InsertConflictTarget(Collection<String> indexColumnName, Expression indexExpression, Expression whereExpression, String constraintName)
-
-
Method Details
-
getIndexColumnNames
-
getIndexColumnName
Deprecated. -
getIndexColumnName
-
addIndexColumnName
-
withIndexColumnName
-
addAllIndexColumnNames
-
getIndexExpression
-
setIndexExpression
-
withIndexExpression
-
getWhereExpression
-
setWhereExpression
-
withWhereExpression
-
getConstraintName
-
setConstraintName
-
withConstraintName
-
appendTo
-
toString
-