- All Implemented Interfaces:
Serializable
,Comparable<ImportMode>
,java.lang.constant.Constable
The definition of import modes for MIB data.
- Version:
- 3.0
- Author:
- Frank Fock
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOnly create new instances.Replaces existing data, if there is any data available for import for the currentManagedObject
and creates data that does not yet exist.Replaces existing data that has aStorageType.nonVolatile
.Only update existing data.In contrast toREPLACE_CREATE
, only existing data is updated or new data is created. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Only create new instances.static final int
Replaces existing data, if there is any data available for import for the currentManagedObject
and creates data that does not yet exist.static final int
Replaces existing data that has aStorageType.nonVolatile
.static final int
Only update existing data.static final int
In contrast toREPLACE_CREATE
, only existing data is updated or new data is created. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportMode
Returns the enum constant of this class with the specified name.static ImportMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
restoreChanges
Replaces existing data that has aStorageType.nonVolatile
. Rows of typeStorageType.permanent
are updated if a row with the same index exists in the import data for the currentManagedObject
and creates data that does not yet exist.- Since:
- 3.0
-
replaceCreate
Replaces existing data, if there is any data available for import for the currentManagedObject
and creates data that does not yet exist. -
updateCreate
In contrast toREPLACE_CREATE
, only existing data is updated or new data is created. Existing data for aManagedObject
which is not updated through imported data, will not be changed (deleted) during import. -
update
Only update existing data. No new instances are created and nothing deleted. -
create
Only create new instances. No updates at all.
-
-
Field Details
-
RESTORE_CHANGES
public static final int RESTORE_CHANGESReplaces existing data that has aStorageType.nonVolatile
. Rows of typeStorageType.permanent
are updated if a row with the same index exists in the import data for the currentManagedObject
and creates data that does not yet exist.- Since:
- 3.0
- See Also:
-
REPLACE_CREATE
public static final int REPLACE_CREATEReplaces existing data, if there is any data available for import for the currentManagedObject
and creates data that does not yet exist.- See Also:
-
UPDATE_CREATE
public static final int UPDATE_CREATEIn contrast toREPLACE_CREATE
, only existing data is updated or new data is created. Existing data for aManagedObject
which is not updated through imported data, will not be changed (deleted) during import.- See Also:
-
UPDATE
public static final int UPDATEOnly update existing data. No new instances are created and nothing deleted.- See Also:
-
CREATE
public static final int CREATEOnly create new instances. No updates at all.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-