IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.io
Enum ValueDataSerializer.Mergeable.MergeType

java.lang.Object
  extended by java.lang.Enum<ValueDataSerializer.Mergeable.MergeType>
      extended by com.ibm.websphere.objectgrid.plugins.io.ValueDataSerializer.Mergeable.MergeType
All Implemented Interfaces:
Serializable, Comparable<ValueDataSerializer.Mergeable.MergeType>
Enclosing interface:
ValueDataSerializer.Mergeable

public static enum ValueDataSerializer.Mergeable.MergeType
extends Enum<ValueDataSerializer.Mergeable.MergeType>

Used by the ValueDataSerializer.Mergeable.mergeDataObjects(DataObjectContext, XsDataInputStream, XsDataInputStream, XsDataOutputStream) method to indicate the form of the data object's merged result.

Since:
7.1.1

Enum Constant Summary
MERGE
          The data object should be merged.
USE_NEWVALUE
          The data object should not be merged.
 
Method Summary
static ValueDataSerializer.Mergeable.MergeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValueDataSerializer.Mergeable.MergeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MERGE

public static final ValueDataSerializer.Mergeable.MergeType MERGE
The data object should be merged. The serialized form of the resulting merged object is used from the data output stream is stored in the cache.


USE_NEWVALUE

public static final ValueDataSerializer.Mergeable.MergeType USE_NEWVALUE
The data object should not be merged. The new object should be used as is.

This is useful for data types that do not require merging when there is no chance that the objects contain disparate sets of attributes, all of which must be preserved.

Method Detail

values

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

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

valueOf

public static ValueDataSerializer.Mergeable.MergeType 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 name
NullPointerException - if the argument is null

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.