Package org.forgerock.opendj.ldap
Enum Class Entries.ReplaceStrategy
- All Implemented Interfaces:
Serializable
,Comparable<Entries.ReplaceStrategy>
,java.lang.constant.Constable
- Enclosing class:
- Entries
Defines the available strategy to generate changes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequests that the generated changes should use theREPLACE
modification type when the new attribute contains at most one attribute value. -
Method Summary
Modifier and TypeMethodDescriptionstatic Entries.ReplaceStrategy
Returns the enum constant of this class with the specified name.static Entries.ReplaceStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REPLACE
-
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
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 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
-