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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
<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
(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceType, Long theTargetResourcePid, String theTargetResourceId, Date theUpdated, Long theTargetResourceVersion) 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) 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
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
SRC_PATH_LENGTH
- See Also:
-
-
Constructor Details
-
ResourceLink
public ResourceLink()
-
-
Method Details
-
getTargetResourceVersion
-
setTargetResourceVersion
-
getTargetResourceId
-
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
-
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
-
getTargetResource
-
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(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceType, Long theTargetResourcePid, String theTargetResourceId, Date theUpdated, @Nullable Long theTargetResourceVersion) - Parameters:
theTargetResourceVersion
- This should only be populated if the reference actually had a version
-