Package com.ibm.fhir.persistence
Class SingleResourceResult<T extends Resource>
- java.lang.Object
-
- com.ibm.fhir.persistence.SingleResourceResult<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleResourceResult.Builder<T extends Resource>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationOutcome
getOutcome()
An OperationOutcome that represents the outcome of the interactionT
getResource()
The resource resulting from the interactionboolean
isDeleted()
Whether or not the resource is deletedboolean
isSuccess()
Whether or not the interaction was successful
-
-
-
Field Detail
-
success
final boolean success
-
outcome
final OperationOutcome outcome
-
deleted
final boolean deleted
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Whether or not the interaction was successful- Returns:
- whether the interaction was successful
-
isDeleted
public boolean isDeleted()
Whether or not the resource is deleted- Returns:
- whether the resource is deleted
-
getResource
public T getResource()
The resource resulting from the interaction- Returns:
- An immutable object of type
Resource
.
-
getOutcome
public OperationOutcome getOutcome()
An OperationOutcome that represents the outcome of the interaction- Returns:
- An immutable object of type
OperationOutcome
-
-