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:
- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoid<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(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceType, Long theTargetResourcePid, String theTargetResourceId, Date theUpdated, Long theTargetResourceVersion)static ResourceLinkforLogicalReference(String theSourcePath, ResourceTable theSourceResource, String theTargetResourceUrl, Date theUpdated)Factory for canonical URLgetId()inthashCode()Subclasses must implementvoidvoidsetSourcePath(String theSourcePath)voidsetSourceResource(ResourceTable theSourceResource)voidsetTargetResource(String theResourceType, Long theResourcePid, String theTargetResourceId)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
setPartitionIdMethods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
SRC_PATH_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ResourceLink
public ResourceLink()
-
-
Method Details
-
getTargetResourceVersion
-
setTargetResourceVersion
-
getTargetResourceId
-
getTargetResourceType
-
equals
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
equalsin classBaseResourceIndex
-
copyMutableValuesFrom
- Specified by:
copyMutableValuesFromin 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:
getIdin classBaseResourceIndex
-
setId
- Specified by:
setIdin classBaseResourceIndex
-
clearHashes
- Specified by:
clearHashesin classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashesin classBaseResourceIndex
-
hashCode
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
hashCodein 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
-