java.lang.Object
java.lang.Enum<ImportMode>
com.orchestranetworks.addon.dex.configuration.ImportMode
All Implemented Interfaces:
Serializable, Comparable<ImportMode>, Constable

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

    • 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 Details

    • values

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

      public static ImportMode 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 name
      NullPointerException - if the argument is null
    • parse

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

      public String getValue()
      Returns this string value.