Class BaseResourcePersistentId<T>
java.lang.Object
ca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId<T>
- All Implemented Interfaces:
IResourcePersistentId<T>
- Direct Known Subclasses:
NotFoundPid
public abstract class BaseResourcePersistentId<T>
extends Object
implements IResourcePersistentId<T>
This class is an abstraction for however primary keys are stored in the underlying storage engine. This might be
a Long, a String, or something else. The generic type T represents the primary key type.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId
NOT_FOUND
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseResourcePersistentId
(Long theVersion, String theResourceType) protected
BaseResourcePersistentId
(String theResourceType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.hl7.fhir.instance.model.api.IIdType
Note that, like Version, ResourceType is usually not populated.int
hashCode()
setAssociatedResourceId
(org.hl7.fhir.instance.model.api.IIdType theAssociatedResourceId) void
setVersion
(Long theVersion) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId
getId
-
Constructor Details
-
BaseResourcePersistentId
-
BaseResourcePersistentId
-
-
Method Details
-
getAssociatedResourceId
- Specified by:
getAssociatedResourceId
in interfaceIResourcePersistentId<T>
-
setAssociatedResourceId
public IResourcePersistentId<T> setAssociatedResourceId(org.hl7.fhir.instance.model.api.IIdType theAssociatedResourceId) - Specified by:
setAssociatedResourceId
in interfaceIResourcePersistentId<T>
-
equals
-
hashCode
-
getVersion
- Specified by:
getVersion
in interfaceIResourcePersistentId<T>
-
setVersion
- Specified by:
setVersion
in interfaceIResourcePersistentId<T>
- Parameters:
theVersion
- This should only be populated if a specific version is needed. If you want the current version, leave this asnull
-
getResourceType
Description copied from interface:IResourcePersistentId
Note that, like Version, ResourceType is usually not populated. It is only populated in scenarios where it is needed downstream.- Specified by:
getResourceType
in interfaceIResourcePersistentId<T>
-