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>
,Comparable<JpaPid>
public class JpaPid
extends ca.uhn.fhir.rest.api.server.storage.BaseResourcePersistentId<Long>
implements Comparable<JpaPid>
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 TypeMethodDescriptionint
boolean
static JpaPid
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) void
setPartitionId
(Integer thePartitionId) 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
-
setPartitionId
-
toLongList
-
toLongList
-
toLongSet
-
fromLongList
-
fromId
-
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
- Specified by:
getId
in interfaceca.uhn.fhir.rest.api.server.storage.IResourcePersistentId<Long>
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<JpaPid>
-
getPartitionId
-