Package ca.uhn.fhir.jpa.model.entity
Class ResourceLink
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
ca.uhn.fhir.jpa.model.entity.ResourceLink
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Creates a clone of this resourcelink which doesn't contain the internal PID of the target resource.<T extends BaseResourceIndex>
voidcopyMutableValuesFrom
(T theSource) boolean
Subclasses must implementstatic ResourceLink
forAbsoluteReference
(String theSourcePath, ResourceTable theSourceResource, org.hl7.fhir.instance.model.api.IIdType theTargetResourceUrl, Date theUpdated) static ResourceLink
forLocalReference
(ResourceLink.ResourceLinkForLocalReferenceParams theResourceLinkForLocalReferenceParams) static ResourceLink
forLogicalReference
(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceUrl, Date theUpdated) Factory for canonical URLgetId()
int
hashCode()
Subclasses must implementvoid
void
setSourcePath
(String theSourcePath) void
setSourceResource
(ResourceTable theSourceResource) void
setTargetResource
(String theResourceType, Long theResourcePid, String theTargetResourceId) setTargetResourcePartitionId
(PartitionablePartitionId theTargetResourcePartitionId) void
setTargetResourceUrl
(org.hl7.fhir.instance.model.api.IIdType theTargetResourceUrl) void
setTargetResourceUrlCanonical
(String theTargetResourceUrl) void
setTargetResourceVersion
(Long theTargetResourceVersion) void
setUpdated
(Date theUpdated) toString()
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionId, setPlaceholderHashesIfMissing
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
SRC_PATH_LENGTH
- See Also:
-
-
Constructor Details
-
ResourceLink
public ResourceLink()Constructor
-
-
Method Details
-
getTargetResourceVersion
-
setTargetResourceVersion
-
getTargetResourceId
-
getSourceResourceType
-
getTargetResourceType
-
equals
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
equals
in classBaseResourceIndex
-
copyMutableValuesFrom
- Specified by:
copyMutableValuesFrom
in classBaseResourceIndex
-
getSourcePath
-
setSourcePath
-
getSourceResourcePid
-
getSourceResource
-
setSourceResource
-
setTargetResource
public void setTargetResource(String theResourceType, Long theResourcePid, String theTargetResourceId) -
getTargetResourceUrl
-
setTargetResourceUrl
-
getTargetResourcePid
-
setTargetResourceUrlCanonical
-
getUpdated
-
setUpdated
-
getId
- Specified by:
getId
in classBaseResourceIndex
-
setId
- Specified by:
setId
in classBaseResourceIndex
-
getTargetResourcePartitionId
-
setTargetResourcePartitionId
public ResourceLink setTargetResourcePartitionId(PartitionablePartitionId theTargetResourcePartitionId) -
clearHashes
- Specified by:
clearHashes
in classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashes
in classBaseResourceIndex
-
hashCode
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
hashCode
in classBaseResourceIndex
-
toString
- Overrides:
toString
in classBasePartitionable
-
getTargetResource
-
cloneWithoutTargetPid
Creates a clone of this resourcelink which doesn't contain the internal PID of the target resource. -
forAbsoluteReference
public static ResourceLink forAbsoluteReference(String theSourcePath, ResourceTable theSourceResource, org.hl7.fhir.instance.model.api.IIdType theTargetResourceUrl, Date theUpdated) -
forLogicalReference
public static ResourceLink forLogicalReference(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceUrl, Date theUpdated) Factory for canonical URL -
forLocalReference
public static ResourceLink forLocalReference(ResourceLink.ResourceLinkForLocalReferenceParams theResourceLinkForLocalReferenceParams)
-