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