GigaSpaces XAP 9.1 API

org.openspaces.core
Enum ReadByIdsException.ReadByIdResult.ReadByIdResultType

java.lang.Object
  extended by java.lang.Enum<ReadByIdsException.ReadByIdResult.ReadByIdResultType>
      extended by org.openspaces.core.ReadByIdsException.ReadByIdResult.ReadByIdResultType
All Implemented Interfaces:
Serializable, Comparable<ReadByIdsException.ReadByIdResult.ReadByIdResultType>
Enclosing class:
ReadByIdsException.ReadByIdResult

public static enum ReadByIdsException.ReadByIdResult.ReadByIdResultType
extends Enum<ReadByIdsException.ReadByIdResult.ReadByIdResultType>

Determines the result type of a read by id operation result.

Since:
7.1.1
Author:
idan

Enum Constant Summary
ERROR
          Operation failed - result contains the exception that caused the failure.
NOT_FOUND
          Operation succeeded - there's no object matching the corresponded Id.
OBJECT
          Operation succeeded - result contains the object matching the corresponded Id.
 
Method Summary
static ReadByIdsException.ReadByIdResult.ReadByIdResultType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReadByIdsException.ReadByIdResult.ReadByIdResultType[] 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

ERROR

public static final ReadByIdsException.ReadByIdResult.ReadByIdResultType ERROR
Operation failed - result contains the exception that caused the failure.


OBJECT

public static final ReadByIdsException.ReadByIdResult.ReadByIdResultType OBJECT
Operation succeeded - result contains the object matching the corresponded Id.


NOT_FOUND

public static final ReadByIdsException.ReadByIdResult.ReadByIdResultType NOT_FOUND
Operation succeeded - there's no object matching the corresponded Id.

Method Detail

values

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

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

valueOf

public static ReadByIdsException.ReadByIdResult.ReadByIdResultType 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

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.