java.io.Serializable
, java.lang.Comparable<ImportMode>
public enum ImportMode extends java.lang.Enum<ImportMode>
Enum Constant | Description |
---|---|
create |
Only create new instances.
|
replaceCreate |
Replaces existing data, if there is any data available for import for the
current
ManagedObject and creates data that does not yet exist. |
restoreChanges |
Replaces existing data that has a
StorageType.nonVolatile . |
update |
Only update existing data.
|
updateCreate |
In contrast to
REPLACE_CREATE , only existing data is updated
or new data is created. |
Modifier and Type | Field | Description |
---|---|---|
static int |
CREATE |
Only create new instances.
|
static int |
REPLACE_CREATE |
Replaces existing data, if there is any data available for import for the
current
ManagedObject and creates data that does not yet exist. |
static int |
RESTORE_CHANGES |
Replaces existing data that has a
StorageType.nonVolatile . |
static int |
UPDATE |
Only update existing data.
|
static int |
UPDATE_CREATE |
In contrast to
REPLACE_CREATE , only existing data is updated
or new data is created. |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public static final ImportMode restoreChanges
StorageType.nonVolatile
. Rows of type StorageType.permanent
are updated if a row with the same index exists in the import data for the current ManagedObject
and
creates data that does not yet exist.public static final ImportMode replaceCreate
ManagedObject
and creates data that does not yet exist.public static final ImportMode updateCreate
REPLACE_CREATE
, only existing data is updated
or new data is created. Existing data for a ManagedObject
which
is not updated through imported data, will not be changed (deleted)
during import.public static final ImportMode update
public static final ImportMode create
public static final int RESTORE_CHANGES
StorageType.nonVolatile
. Rows of type StorageType.permanent
are updated if a row with the same index exists in the import data for the current ManagedObject
and
creates data that does not yet exist.public static final int REPLACE_CREATE
ManagedObject
and creates data that does not yet exist.public static final int UPDATE_CREATE
REPLACE_CREATE
, only existing data is updated
or new data is created. Existing data for a ManagedObject
which
is not updated through imported data, will not be changed (deleted)
during import.public static final int UPDATE
public static final int CREATE
public static ImportMode[] values()
for (ImportMode c : ImportMode.values()) System.out.println(c);
public static ImportMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018 SNMP4J.org. All rights reserved.