Enum ImportMode
- All Implemented Interfaces:
Serializable
,Comparable<ImportMode>
,Constable
Specifies the configuration used for importing data to a file.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that only modifications of existing records are allowed.Specifies that all records will be replaced during the import process.Specifies an undefined mode.Specifies that all records will be updated or inserted during import process.Specifies that only record creations are allowed. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns this stringvalue
.static ImportMode
Returns theImportMode
instance corresponding to the value specified.static ImportMode
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, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UPDATE_AND_INSERT
Specifies that all records will be updated or inserted during import process. -
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
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
Specifies that all records will be replaced during the import process. -
UNKNOWN
Specifies an undefined mode.
-
-
Method Details
-
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
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
-
parse
Returns theImportMode
instance corresponding to the value specified. -
getValue
Returns this stringvalue
.
-