
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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCreates a clone of this resourcelink which doesn't contain the internal PID of the target resource.<T extends BaseResourceIndex>
voidcopyMutableValuesFrom(T theSource) booleanSubclasses must implementstatic ResourceLinkforAbsoluteReference(String theSourcePath, ResourceTable theSourceResource, org.hl7.fhir.instance.model.api.IIdType theTargetResourceUrl, Date theUpdated) static ResourceLinkforLocalReference(ResourceLink.ResourceLinkForLocalReferenceParams theResourceLinkForLocalReferenceParams) static ResourceLinkforLogicalReference(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceUrl, Date theUpdated) Factory for canonical URLgetId()inthashCode()Subclasses must implementvoidpostLoad()ResourceLink.myTargetResource field is immutable.Transient ResourceLink.myTransientTargetResource property is used instead, allowing it to be updated via the ResourceLink#copyMutableValuesFrom method when ResourceLink table row is reused.voidvoidsetResourceId(Long theResourceId) voidsetSourcePath(String theSourcePath) voidsetSourceResource(ResourceTable theSourceResource) voidsetTargetResource(String theResourceType, Long theResourcePid, String theTargetResourceId) setTargetResourcePartitionId(PartitionablePartitionId theTargetResourcePartitionId) voidsetTargetResourceTypeId(Short theTargetResourceTypeId) voidsetTargetResourceUrl(org.hl7.fhir.instance.model.api.IIdType theTargetResourceUrl) voidsetTargetResourceUrlCanonical(String theTargetResourceUrl) voidsetTargetResourceVersion(Long theTargetResourceVersion) voidsetUpdated(Date theUpdated) toString()Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionId, setPlaceholderHashesIfMissingMethods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
SRC_PATH_LENGTH
- See Also:
-
TARGET_RES_PARTITION_ID
- See Also:
-
TARGET_RESOURCE_ID
- See Also:
-
FK_RESLINK_TARGET
- See Also:
-
-
Constructor Details
-
ResourceLink
public ResourceLink()Constructor
-
-
Method Details
-
getTargetResourceVersion
-
setTargetResourceVersion
-
getTargetResourceId
-
getSourceResourceType
-
getTargetResourceType
-
equals
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
equalsin classBaseResourceIndex
-
postLoad
ResourceLink.myTargetResource field is immutable.Transient ResourceLink.myTransientTargetResource property is used instead, allowing it to be updated via the ResourceLink#copyMutableValuesFrom method when ResourceLink table row is reused. -
copyMutableValuesFrom
- Specified by:
copyMutableValuesFromin classBaseResourceIndex
-
setResourceId
- Specified by:
setResourceIdin classBaseResourceIndex
-
getSourcePath
-
setSourcePath
-
getSourceResourcePk
-
getSourceResource
-
setSourceResource
-
setTargetResource
public void setTargetResource(String theResourceType, Long theResourcePid, String theTargetResourceId) -
getTargetResourceUrl
-
setTargetResourceUrl
-
getTargetResourcePid
-
setTargetResourceUrlCanonical
-
getUpdated
-
setUpdated
-
getId
- Specified by:
getIdin classBaseResourceIndex
-
setId
- Specified by:
setIdin classBaseResourceIndex
-
getTargetResourcePartitionDate
-
getTargetResourcePartitionId
-
setTargetResourcePartitionId
public ResourceLink setTargetResourcePartitionId(PartitionablePartitionId theTargetResourcePartitionId) -
getSourceResourceTypeId
-
getSourceResTypeEntity
-
getTargetResourceTypeId
-
setTargetResourceTypeId
-
getTargetResTypeEntity
-
clearHashes
- Specified by:
clearHashesin classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashesin classBaseResourceIndex
-
hashCode
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
hashCodein classBaseResourceIndex
-
toString
- Overrides:
toStringin 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)
-