Package com.gengoai.sql.constraint
Enum ConflictClause
- java.lang.Object
-
- java.lang.Enum<ConflictClause>
-
- com.gengoai.sql.constraint.ConflictClause
-
- All Implemented Interfaces:
SQLElement
,Serializable
,Comparable<ConflictClause>
public enum ConflictClause extends Enum<ConflictClause> implements SQLElement
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConflictClause
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConflictClause[]
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
-
ROLLBACK
public static final ConflictClause ROLLBACK
-
ABORT
public static final ConflictClause ABORT
-
FAIL
public static final ConflictClause FAIL
-
IGNORE
public static final ConflictClause IGNORE
-
REPLACE
public static final ConflictClause REPLACE
-
-
Method Detail
-
values
public static ConflictClause[] 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 (ConflictClause c : ConflictClause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConflictClause 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
-
-