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) boolean
deleted
(package private) Integer
ifNoneMatchVersion
(package private) InteractionStatus
interactionStatus
(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 Integer
getIfNoneMatchVersion()
Getter for the ifNoneMatchVersion valueOperationOutcome
getOutcome()
An OperationOutcome that represents the outcome of the interactionT
getResource()
The resource resulting from the interactionInteractionStatus
getStatus()
Getter for the interaction statusboolean
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
-
interactionStatus
final InteractionStatus interactionStatus
-
ifNoneMatchVersion
final Integer ifNoneMatchVersion
-
-
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
.
-
getStatus
public InteractionStatus getStatus()
Getter for the interaction status- Returns:
-
getIfNoneMatchVersion
public Integer getIfNoneMatchVersion()
Getter for the ifNoneMatchVersion value- Returns:
-
getOutcome
public OperationOutcome getOutcome()
An OperationOutcome that represents the outcome of the interaction- Returns:
- An immutable object of type
OperationOutcome
-
-