Package org.openspaces.core
Class TakeByIdsException.TakeByIdResult
java.lang.Object
org.openspaces.core.TakeByIdsException.TakeByIdResult
- Enclosing class:
- TakeByIdsException
Holds a TakeByIdsException result. The result contains the object's Id, the result type, the
read object and the thrown exception.
- Since:
- 7.1.1
- Author:
- idan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDetermines the result type of a take by id operation result. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTakeByIdResult(ReadTakeByIdResult result, ExceptionTranslator exceptionTranslator) -
Method Summary
-
Constructor Details
-
TakeByIdResult
-
-
Method Details
-
getError
- Returns:
- On error returns the exception that occurred, otherwise null.
-
getId
- Returns:
- The object Id this result is relevant for.
-
getObject
- Returns:
- The read object for this result or null if no object was found or an exception occurred.
-
isError
public boolean isError()- Returns:
- True if an exception is associated with this result.
-
getResultType
- Returns:
- This result's object type.
-