Enum OperationFault.Type
- java.lang.Object
-
- java.lang.Enum<OperationFault.Type>
-
- com.feedzai.commons.sql.abstraction.engine.handler.OperationFault.Type
-
- All Implemented Interfaces:
Serializable,Comparable<OperationFault.Type>
- Enclosing class:
- OperationFault
public static enum OperationFault.Type extends Enum<OperationFault.Type>
The type of fault detected in the operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLUMN_DOES_NOT_EXISTColumn does not exist.FOREIGN_KEY_ALREADY_EXISTSForeign key already exists.INDEX_ALREADY_EXISTSIndex already exists.PRIMARY_KEY_ALREADY_EXISTSThe primary key that already exists.SEQUENCE_ALREADY_EXISTSSequence already exists.SEQUENCE_DOES_NOT_EXISTSequence does not exist.TABLE_ALREADY_EXISTSTable does not exist.TABLE_DOES_NOT_EXISTTable does not exist.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationFault.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static OperationFault.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRIMARY_KEY_ALREADY_EXISTS
public static final OperationFault.Type PRIMARY_KEY_ALREADY_EXISTS
The primary key that already exists.
-
FOREIGN_KEY_ALREADY_EXISTS
public static final OperationFault.Type FOREIGN_KEY_ALREADY_EXISTS
Foreign key already exists.
-
INDEX_ALREADY_EXISTS
public static final OperationFault.Type INDEX_ALREADY_EXISTS
Index already exists.
-
SEQUENCE_ALREADY_EXISTS
public static final OperationFault.Type SEQUENCE_ALREADY_EXISTS
Sequence already exists.
-
SEQUENCE_DOES_NOT_EXIST
public static final OperationFault.Type SEQUENCE_DOES_NOT_EXIST
Sequence does not exist.
-
TABLE_DOES_NOT_EXIST
public static final OperationFault.Type TABLE_DOES_NOT_EXIST
Table does not exist.
-
COLUMN_DOES_NOT_EXIST
public static final OperationFault.Type COLUMN_DOES_NOT_EXIST
Column does not exist.
-
TABLE_ALREADY_EXISTS
public static final OperationFault.Type TABLE_ALREADY_EXISTS
Table does not exist.
-
-
Method Detail
-
values
public static OperationFault.Type[] 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 (OperationFault.Type c : OperationFault.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationFault.Type 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
-
-