Package org.forgerock.opendj.ldap
Enum Entries.ReplaceStrategy
- java.lang.Object
-
- java.lang.Enum<Entries.ReplaceStrategy>
-
- org.forgerock.opendj.ldap.Entries.ReplaceStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<Entries.ReplaceStrategy>
- Enclosing class:
- Entries
public static enum Entries.ReplaceStrategy extends Enum<Entries.ReplaceStrategy>
Defines the available strategy to generate changes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_REPLACE
REPLACE_ALL_ATTRIBUTES
REPLACE_SINGLE_VALUED_ATTRIBUTES
Requests that the generated changes should use theREPLACE
modification type when the new attribute contains at most one attribute value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Entries.ReplaceStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static Entries.ReplaceStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_REPLACE
public static final Entries.ReplaceStrategy NO_REPLACE
-
REPLACE_SINGLE_VALUED_ATTRIBUTES
public static final Entries.ReplaceStrategy REPLACE_SINGLE_VALUED_ATTRIBUTES
Requests that the generated changes should use theREPLACE
modification type when the new attribute contains at most one attribute value. All other changes will use a combination ofDELETE
thenADD
.Specifying this option will usually provide the best overall performance for single and multi-valued attribute updates, but the generated changes will probably not be reversible.
-
REPLACE_ALL_ATTRIBUTES
public static final Entries.ReplaceStrategy REPLACE_ALL_ATTRIBUTES
Requests that all generated changes should use theREPLACE
modification type, rather than a combination ofDELETE
andADD
.Note that the generated changes will not be reversible, nor will they be efficient for attributes containing many values (such as groups). Enabling this option may result in more efficient updates for single valued attributes and reduce the amount of replication meta-data that needs to be maintained.
-
-
Method Detail
-
values
public static Entries.ReplaceStrategy[] 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 (Entries.ReplaceStrategy c : Entries.ReplaceStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Entries.ReplaceStrategy 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 nameNullPointerException
- if the argument is null
-
-