Enum ImportMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImportMode>

    public enum ImportMode
    extends java.lang.Enum<ImportMode>
    Specifies the configuration used for importing data to a file.
    Since:
    2.3.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSERT_ONLY
      Specifies that only modifications of existing records are allowed.
      REPLACE_ALL_CONTENT
      Specifies that all records will be replaced during the import process.
      UNKNOWN
      Specifies an undefined mode.
      UPDATE_AND_INSERT
      Specifies that all records will be updated or inserted during import process.
      UPDATE_ONLY
      Specifies that only record creations are allowed.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()
      Returns this string value.
      static ImportMode parse​(java.lang.String value)
      Returns the ImportMode instance corresponding to the value specified.
      static ImportMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ImportMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • UPDATE_AND_INSERT

        public static final ImportMode UPDATE_AND_INSERT
        Specifies that all records will be updated or inserted during import process.
      • INSERT_ONLY

        public static final ImportMode INSERT_ONLY
        Specifies that only modifications of existing records are allowed. If a record with the same primary key does not exist in the target table, an error is returned.
      • UPDATE_ONLY

        public static final ImportMode UPDATE_ONLY
        Specifies that only record creations are allowed. If a record exists in the target table with the same primary key as in the source, an error is returned.
      • REPLACE_ALL_CONTENT

        public static final ImportMode REPLACE_ALL_CONTENT
        Specifies that all records will be replaced during the import process.
      • UNKNOWN

        public static final ImportMode UNKNOWN
        Specifies an undefined mode.
    • Method Detail

      • values

        public static ImportMode[] 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 (ImportMode c : ImportMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImportMode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • parse

        public static ImportMode parse​(java.lang.String value)
        Returns the ImportMode instance corresponding to the value specified.
      • getValue

        public java.lang.String getValue()
        Returns this string value.