Enum StandardConversions.ConversionType

All Implemented Interfaces:
Serializable, Comparable<StandardConversions.ConversionType>
Enclosing class:

public static enum StandardConversions.ConversionType extends Enum<StandardConversions.ConversionType>
Indicates the type of conversion needed.
  • Enum Constant Details

    • NONE

      public static final StandardConversions.ConversionType NONE
      No conversion needed. Readers generally don't provide converters in this case unless the meaning of a column must change, keeping the type, such as converting between units.

      public static final StandardConversions.ConversionType IMPLICIT
      Conversion is done by the column writers. Again, no converter is needed except for semantic reasons.

      public static final StandardConversions.ConversionType IMPLICIT_UNSAFE
      Conversion is done by the column writers. No converter is needed. However, the value is subject to overflow as this is a narrowing operation. Depending on the implementation, the operation may either raise an error, or produce a value limited by the range of the target type.

      public static final StandardConversions.ConversionType EXPLICIT
      Conversion is needed because there is no "natural", precision-preserving conversion. Conversions must be done on an ad-hoc basis.
  • Method Details

    • values

      public static StandardConversions.ConversionType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static StandardConversions.ConversionType 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null