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 classSingleResourceResult.Builder<T extends Resource>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationOutcomegetOutcome()An OperationOutcome that represents the outcome of the interactionTgetResource()The resource resulting from the interactionbooleanisDeleted()Whether or not the resource is deletedbooleanisSuccess()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
-
-