IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid
Enum ObjectMap.PutMode

java.lang.Object
  extended by java.lang.Enum<ObjectMap.PutMode>
      extended by com.ibm.websphere.objectgrid.ObjectMap.PutMode
All Implemented Interfaces:
Serializable, Comparable<ObjectMap.PutMode>
Enclosing interface:
ObjectMap

public static enum ObjectMap.PutMode
extends Enum<ObjectMap.PutMode>

Identifies the operation mode of the ObjectMap.put(Object, Object), ObjectMap.putAll(Map) , JavaMap.put(Object, Object) and JavaMap.putAll(Map) methods.

Since:
8.6
See Also:
ObjectMap.setPutMode(PutMode)

Enum Constant Summary
INSERTUPDATE
          Deprecated. Deprecated in 8.6. Use the UPSERT enumeration.
UPSERT
          The put API behaves like the upsert method.
 
Method Summary
static ObjectMap.PutMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ObjectMap.PutMode[] 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

INSERTUPDATE

public static final ObjectMap.PutMode INSERTUPDATE
Deprecated. Deprecated in 8.6. Use the UPSERT enumeration.
The put API behaves like an insert or update.


UPSERT

public static final ObjectMap.PutMode UPSERT
The put API behaves like the upsert method.

Method Detail

values

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

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

valueOf

public static ObjectMap.PutMode 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.