
Package ca.uhn.fhir.jpa.dao
Class TransactionUtil.StorageOutcome
java.lang.Object
ca.uhn.fhir.jpa.dao.TransactionUtil.StorageOutcome
- Enclosing class:
TransactionUtil
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStorageOutcome
(int theStatusCode, String theStatusMessage, ca.uhn.fhir.model.api.StorageResponseCodeEnum theStorageResponseCode, org.hl7.fhir.instance.model.api.IIdType theSourceId, org.hl7.fhir.instance.model.api.IIdType theTargetId, String theErrorMessage, String theRequestMetaSource) -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IIdType
int
ca.uhn.fhir.model.api.StorageResponseCodeEnum
org.hl7.fhir.instance.model.api.IIdType
-
Constructor Details
-
StorageOutcome
public StorageOutcome(int theStatusCode, String theStatusMessage, ca.uhn.fhir.model.api.StorageResponseCodeEnum theStorageResponseCode, org.hl7.fhir.instance.model.api.IIdType theSourceId, org.hl7.fhir.instance.model.api.IIdType theTargetId, String theErrorMessage, String theRequestMetaSource)
-
-
Method Details
-
getErrorMessage
- Returns:
- Returns an error message if the specific action resulted in a failure. Returns null otherwise.
-
getStatusCode
- Returns:
- Returns the HTTP status code
-
getStatusMessage
- Returns:
- Returns the complete HTTP status message including the
getStatusCode()
and the rest of the message. For example: 200 OK
-
getStorageResponseCode
- Returns:
- Contains a code identifying the specific outcome of this operation.
-
getTargetId
- Returns:
- Returns the ID of the resource as it was stored in the repository.
-
getSourceId
- Returns:
- Returns the ID of the resource in the request bundle in most cases. This could be an actual
resource ID if the operation was an update by ID, or a placeholder UUID if placeholder IDs were in
use in the bundle. If the
getStorageResponseCode()
for this outcome isStorageResponseCodeEnum.AUTOMATICALLY_CREATED_PLACEHOLDER_RESOURCE
, the source ID will be the actual resolved and stored resource ID of the resource containing the reference which caused the placeholder to be created. The ID returned will be unqualified, meaning it has no base URL.
-
getRequestMetaSource
- Returns:
- Returns the
Resource.meta.source
value from the resource provided in the request bundle entry corresponding to this outcome.
-