Package com.gengoai.sql.statement
Enum UpsertAction
- java.lang.Object
-
- java.lang.Enum<UpsertAction>
-
- com.gengoai.sql.statement.UpsertAction
-
- All Implemented Interfaces:
SQLElement
,Serializable
,Comparable<UpsertAction>
public enum UpsertAction extends Enum<UpsertAction> implements SQLElement
The action to perform for doing an upsert as part of index conflict in anInsert
statement.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOTHING
Do NothingUPDATE_SET
Update the row
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UpsertAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static UpsertAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.gengoai.sql.SQLElement
getClassName
-
-
-
-
Enum Constant Detail
-
NOTHING
public static final UpsertAction NOTHING
Do Nothing
-
UPDATE_SET
public static final UpsertAction UPDATE_SET
Update the row
-
-
Method Detail
-
values
public static UpsertAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UpsertAction c : UpsertAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UpsertAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-