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>
-
Field Summary
Fields Modifier and Type Field Description (package private) OperationOutcome
outcome
(package private) T
resource
(package private) boolean
success
-
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
isSuccess()
Whether or not the interaction was successful
-
-
-
Field Detail
-
success
final boolean success
-
outcome
final OperationOutcome outcome
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Whether or not the interaction was successful- Returns:
- whether the interaction was successful
-
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
-
-