com.hp.ucmdb.api.topology
Enum CreateMode

java.lang.Object
  extended by java.lang.Enum<CreateMode>
      extended by com.hp.ucmdb.api.topology.CreateMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CreateMode>

public enum CreateMode
extends java.lang.Enum<CreateMode>

The creation mode determines the behavior of the UCMDB with respect to existing CIs and relations. A CI exists if the values of its key attributes are the same as those of an CI defined in the UCMDB. A relation exists if there is a relation of the same type between the same CIs.


Enum Constant Summary
FAIL_IF_EXIST
          Fail the creation of the whole batch if any of the supplied CIs or relations already exist.
IGNORE_EXISTING
          Create non-existing CIs and relations and ignore existing ones.
UPDATE_EXISTING
          Create non-existing CIs and relations and update the non-key properties of existing ones.
 
Method Summary
static CreateMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CreateMode[] 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

FAIL_IF_EXIST

public static final CreateMode FAIL_IF_EXIST
Fail the creation of the whole batch if any of the supplied CIs or relations already exist.


IGNORE_EXISTING

public static final CreateMode IGNORE_EXISTING
Create non-existing CIs and relations and ignore existing ones. Do not update properties of existing elements.


UPDATE_EXISTING

public static final CreateMode UPDATE_EXISTING
Create non-existing CIs and relations and update the non-key properties of existing ones.

Method Detail

values

public static CreateMode[] 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 (CreateMode c : CreateMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CreateMode 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


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.