IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.plugins.io
Enum ValueDataSerializer.Versionable.VersionType

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

public static enum ValueDataSerializer.Versionable.VersionType
extends Enum<ValueDataSerializer.Versionable.VersionType>

The VersionType enumeration indicates the type of version information that the Versionable data serializer exports from the ValueDataSerializer.Versionable.getVersion(DataObjectContext, XsDataInputStream, XsDataOutputStream) method.

Since:
7.1.1

Enum Constant Summary
DEFAULT_VERSION
          The data object should be versioned using the entire serialized form of the data object.
NO_VERSION
          The data object should not be versioned.
USER_VERSION
          The serialized form of the version attribute is written to the data output stream.
 
Method Summary
static ValueDataSerializer.Versionable.VersionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValueDataSerializer.Versionable.VersionType[] 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

DEFAULT_VERSION

public static final ValueDataSerializer.Versionable.VersionType DEFAULT_VERSION
The data object should be versioned using the entire serialized form of the data object.

This is useful when the data object does not contain a version field, but optimistic version checking is required.


NO_VERSION

public static final ValueDataSerializer.Versionable.VersionType NO_VERSION
The data object should not be versioned. The eXtreme Scale runtime will not perform any version checking on the object.

This is useful for data types that do not require versioning when there is no chance for a collision.


USER_VERSION

public static final ValueDataSerializer.Versionable.VersionType USER_VERSION
The serialized form of the version attribute is written to the data output stream. The eXtreme Scale runtime will use the serialized form of the version data for version checking or access via the ValueDataSerializer.Versionable.versionEquals(DataObjectContext, XsDataInputStream, XsDataInputStream) and ValueDataSerializer.Versionable.inflateDataObjectVersion(DataObjectContext, XsDataInputStream) methods.

Method Detail

values

public static ValueDataSerializer.Versionable.VersionType[] 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.Versionable.VersionType c : ValueDataSerializer.Versionable.VersionType.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.Versionable.VersionType 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.