Package ca.uhn.fhir.jpa.model.dao
Class JpaPid
java.lang.Object
ca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId<Long>
ca.uhn.fhir.jpa.model.dao.JpaPid
- All Implemented Interfaces:
ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<Long>
JPA implementation of IResourcePersistentId. JPA uses a Long as the primary key. This class should be used in any
context where the pid is known to be a Long.
-
Field Summary
Fields inherited from interface ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId
NOT_FOUND
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static JpaPid
static JpaPid
fromIdAndResourceType
(Long theId, String theResourceType) static JpaPid
fromIdAndVersion
(Long theId, Long theVersion) static JpaPid
fromIdAndVersionAndResourceType
(Long theId, Long theVersion, String theResourceType) fromLongList
(Collection<Long> theResultList) getId()
int
hashCode()
setPartitionablePartitionId
(PartitionablePartitionId thePartitionablePartitionId) toLongList
(JpaPid[] thePids) toLongList
(Collection<JpaPid> thePids) toLongSet
(Collection<JpaPid> thePids) toString()
Methods inherited from class ca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId
getAssociatedResourceId, getResourceType, getVersion, setAssociatedResourceId, setVersion
-
Method Details
-
getPartitionablePartitionId
-
setPartitionablePartitionId
-
toLongList
-
toLongList
-
toLongSet
-
fromLongList
-
fromId
-
fromIdAndVersion
-
fromIdAndResourceType
-
fromIdAndVersionAndResourceType
public static JpaPid fromIdAndVersionAndResourceType(Long theId, Long theVersion, String theResourceType) -
equals
- Overrides:
equals
in classca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId<Long>
-
hashCode
- Overrides:
hashCode
in classca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId<Long>
-
getId
-
toString
-
getPartitionId
-