public static enum MergeInsertParams.WhenMatched extends Enum<MergeInsertParams.WhenMatched>
| Enum Constant and Description |
|---|
DoNothing
The row is kept unchanged.
|
Fail
The operation will fail if a match is found between the source and target table.
|
UpdateAll
The row is deleted from the target table and a new row is inserted based on the source table.
|
UpdateIf
The row is updated (similar to UpdateAll) only for rows where the expression evaluates to
true.
|
| Modifier and Type | Method and Description |
|---|---|
static MergeInsertParams.WhenMatched |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergeInsertParams.WhenMatched[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeInsertParams.WhenMatched UpdateAll
public static final MergeInsertParams.WhenMatched DoNothing
public static final MergeInsertParams.WhenMatched UpdateIf
public static final MergeInsertParams.WhenMatched Fail
public static MergeInsertParams.WhenMatched[] values()
for (MergeInsertParams.WhenMatched c : MergeInsertParams.WhenMatched.values()) System.out.println(c);
public static MergeInsertParams.WhenMatched valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2025. All rights reserved.