
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
ConstructorsModifierConstructorDescriptionprotectedBaseResourcePersistentId(Long theVersion, String theResourceType) protectedBaseResourcePersistentId(String theResourceType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.hl7.fhir.instance.model.api.IIdTypeNote that, like Version, ResourceType is usually not populated.inthashCode()setAssociatedResourceId(org.hl7.fhir.instance.model.api.IIdType theAssociatedResourceId) voidsetResourceType(String theResourceType) voidsetVersion(Long theVersion) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId
getId, getPartitionId
-
Constructor Details
-
BaseResourcePersistentId
-
BaseResourcePersistentId
-
-
Method Details
-
getAssociatedResourceId
- Specified by:
getAssociatedResourceIdin interfaceIResourcePersistentId<T>
-
setAssociatedResourceId
public IResourcePersistentId<T> setAssociatedResourceId(org.hl7.fhir.instance.model.api.IIdType theAssociatedResourceId) - Specified by:
setAssociatedResourceIdin interfaceIResourcePersistentId<T>
-
equals
-
hashCode
-
getVersion
- Specified by:
getVersionin interfaceIResourcePersistentId<T>
-
setVersion
- Specified by:
setVersionin 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:IResourcePersistentIdNote that, like Version, ResourceType is usually not populated. It is only populated in scenarios where it is needed downstream.- Specified by:
getResourceTypein interfaceIResourcePersistentId<T>
-
setResourceType
-