Package com.exasol.adapter.document.edml
Enum ConvertableMappingErrorBehaviour
- java.lang.Object
-
- java.lang.Enum<ConvertableMappingErrorBehaviour>
-
- com.exasol.adapter.document.edml.ConvertableMappingErrorBehaviour
-
- All Implemented Interfaces:
Serializable,Comparable<ConvertableMappingErrorBehaviour>
public enum ConvertableMappingErrorBehaviour extends Enum<ConvertableMappingErrorBehaviour>
Behaviour for errors during schema mapping. This enum extends theMappingErrorBehaviourby the CONVERT_OR_NULL and CONVERT_OR_ABORT option that is only applicable for certain types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTAbort the whole queryCONVERT_OR_ABORTTry to convert the value and abort if that is not possible.CONVERT_OR_NULLTry to convert the value and return NULL if that is not possible.NULLUse NULL instead
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConvertableMappingErrorBehaviourvalueOf(String name)Returns the enum constant of this type with the specified name.static ConvertableMappingErrorBehaviour[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONVERT_OR_NULL
public static final ConvertableMappingErrorBehaviour CONVERT_OR_NULL
Try to convert the value and return NULL if that is not possible.
-
CONVERT_OR_ABORT
public static final ConvertableMappingErrorBehaviour CONVERT_OR_ABORT
Try to convert the value and abort if that is not possible.
-
ABORT
public static final ConvertableMappingErrorBehaviour ABORT
Abort the whole query
-
NULL
public static final ConvertableMappingErrorBehaviour NULL
Use NULL instead
-
-
Method Detail
-
values
public static ConvertableMappingErrorBehaviour[] 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 (ConvertableMappingErrorBehaviour c : ConvertableMappingErrorBehaviour.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConvertableMappingErrorBehaviour 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
-
-