
Package ca.uhn.fhir.jpa.model.entity
Class ResourceTable
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseHasResource
ca.uhn.fhir.jpa.model.entity.ResourceTable
- All Implemented Interfaces:
IBasePersistedResource
,IResourceLookup
,IBaseResourceEntity
,Serializable
@Indexed(routingBinder=@RoutingBinderRef(type=ResourceTableRoutingBinder.class))
@Entity
public class ResourceTable
extends BaseHasResource
implements Serializable, IBasePersistedResource, IResourceLookup
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Populate myFhirId with server-assigned sequence id when no client-id provided. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTag
(TagDefinition theTag) This is a convenience to avoid loading the version a second time within a single transaction.Get the FHIR resource id.getId()
ca.uhn.fhir.model.primitive.IdDt
getIdDt()
org.hl7.fhir.instance.model.api.IIdType
getIdType
(ca.uhn.fhir.context.FhirContext theContext) ca.uhn.fhir.rest.api.server.storage.IResourcePersistentId
getTags()
long
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Transient (not saved in DB) flag indicating that this resource was found to be unchanged by the current operation and was not re-saved in the databasevoid
preSave()
void
setContentText
(String theContentText) void
setCreatedByMatchUrl
(String theCreatedByMatchUrl) void
setCurrentVersionEntity
(ResourceHistoryTable theCurrentVersionEntity) This is a convenience to avoid loading the version a second time within a single transaction.void
void
setForcedId
(ForcedId theForcedId) void
setHashSha256
(String theHashSha256) void
setHasLinks
(boolean theHasLinks) void
void
setIndexStatus
(Long theIndexStatus) void
setLuceneIndexData
(ExtendedHSearchIndexData theLuceneIndexData) void
setNarrativeText
(String theNarrativeText) void
void
setParamsComboStringUniquePresent
(boolean theParamsComboStringUniquePresent) void
setParamsComboTokensNonUniquePresent
(boolean theParamsComboTokensNonUniquePresent) void
setParamsCoords
(Collection<ResourceIndexedSearchParamCoords> theParamsCoords) void
setParamsCoordsPopulated
(boolean theParamsCoordsPopulated) void
setParamsDate
(Collection<ResourceIndexedSearchParamDate> theParamsDate) void
setParamsDatePopulated
(boolean theParamsDatePopulated) void
setParamsNumber
(Collection<ResourceIndexedSearchParamNumber> theNumberParams) void
setParamsNumberPopulated
(boolean theParamsNumberPopulated) void
setParamsQuantity
(Collection<ResourceIndexedSearchParamQuantity> theQuantityParams) void
setParamsQuantityNormalized
(Collection<ResourceIndexedSearchParamQuantityNormalized> theQuantityNormalizedParams) void
setParamsQuantityNormalizedPopulated
(Boolean theParamsQuantityNormalizedPopulated) void
setParamsQuantityPopulated
(boolean theParamsQuantityPopulated) void
setParamsString
(Collection<ResourceIndexedSearchParamString> theParamsString) void
setParamsStringPopulated
(boolean theParamsStringPopulated) void
setParamsToken
(Collection<ResourceIndexedSearchParamToken> theParamsToken) void
setParamsTokenPopulated
(boolean theParamsTokenPopulated) void
setParamsUri
(Collection<ResourceIndexedSearchParamUri> theParamsUri) void
setParamsUriPopulated
(boolean theParamsUriPopulated) void
setResourceLinks
(Collection<ResourceLink> theLinks) setResourceType
(String theResourceType) void
setUnchangedInCurrentOperation
(boolean theUnchangedInCurrentOperation) Transient (not saved in DB) flag indicating that this resource was found to be unchanged by the current operation and was not re-saved in the databasevoid
setVersion
(long theVersion) toHistory
(boolean theCreateVersionTags) toString()
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseHasResource
getDeleted, getFhirVersion, getPublished, getPublishedDate, getTransientForcedId, getUpdated, getUpdatedDate, isHasTags, setDeleted, setFhirVersion, setHasTags, setPublished, setPublished, setTransientForcedId, setUpdated, setUpdated
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId, setPartitionId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.model.entity.IBaseResourceEntity
getPartitionId
Methods inherited from interface ca.uhn.fhir.jpa.model.cross.IResourceLookup
getDeleted
-
Field Details
-
RESTYPE_LEN
- See Also:
-
-
Constructor Details
-
ResourceTable
public ResourceTable()Constructor
-
-
Method Details
-
addTag
- Specified by:
addTag
in classBaseHasResource
-
getHashSha256
-
setHashSha256
-
getId
- Specified by:
getId
in interfaceIBaseResourceEntity
- Specified by:
getId
in classBaseHasResource
-
setId
-
getIndexStatus
-
setIndexStatus
-
getParamsComboStringUnique
-
getmyParamsComboTokensNonUnique
-
getParamsCoords
-
setParamsCoords
-
getParamsDate
-
setParamsDate
-
getParamsNumber
-
setParamsNumber
-
getParamsQuantity
-
setParamsQuantity
-
getParamsQuantityNormalized
-
setParamsQuantityNormalized
public void setParamsQuantityNormalized(Collection<ResourceIndexedSearchParamQuantityNormalized> theQuantityNormalizedParams) -
getParamsString
-
setParamsString
-
getParamsToken
-
setParamsToken
-
getParamsUri
-
setParamsUri
-
getResourceId
- Specified by:
getResourceId
in interfaceIBaseResourceEntity
- Specified by:
getResourceId
in classBaseHasResource
-
getResourceLinks
-
setResourceLinks
-
getResourceType
- Specified by:
getResourceType
in interfaceIBaseResourceEntity
- Specified by:
getResourceType
in interfaceIResourceLookup
- Specified by:
getResourceType
in classBaseHasResource
-
setResourceType
-
getTags
- Specified by:
getTags
in classBaseHasResource
-
getVersion
- Specified by:
getVersion
in interfaceIBasePersistedResource
- Specified by:
getVersion
in interfaceIBaseResourceEntity
- Specified by:
getVersion
in classBaseHasResource
-
isDeleted
- Specified by:
isDeleted
in interfaceIBasePersistedResource
-
setNotDeleted
- Specified by:
setNotDeleted
in interfaceIBasePersistedResource
-
setVersion
-
isHasLinks
-
setHasLinks
-
isParamsComboStringUniquePresent
-
setParamsComboStringUniquePresent
-
isParamsComboTokensNonUniquePresent
-
setParamsComboTokensNonUniquePresent
-
isParamsCoordsPopulated
-
setParamsCoordsPopulated
-
isParamsDatePopulated
-
setParamsDatePopulated
-
isParamsNumberPopulated
-
setParamsNumberPopulated
-
isParamsQuantityPopulated
-
setParamsQuantityPopulated
-
isParamsQuantityNormalizedPopulated
-
setParamsQuantityNormalizedPopulated
-
isParamsStringPopulated
-
setParamsStringPopulated
-
isParamsTokenPopulated
-
setParamsTokenPopulated
-
isParamsUriPopulated
-
setParamsUriPopulated
-
isUnchangedInCurrentOperation
Transient (not saved in DB) flag indicating that this resource was found to be unchanged by the current operation and was not re-saved in the database -
setUnchangedInCurrentOperation
Transient (not saved in DB) flag indicating that this resource was found to be unchanged by the current operation and was not re-saved in the database -
setContentText
-
getContentText
-
setNarrativeText
-
toHistory
-
toString
- Overrides:
toString
in classBasePartitionable
-
preSave
-
setCurrentVersionEntity
This is a convenience to avoid loading the version a second time within a single transaction. It is not persisted. -
getCurrentVersionEntity
This is a convenience to avoid loading the version a second time within a single transaction. It is not persisted. -
getPersistentId
- Specified by:
getPersistentId
in interfaceIResourceLookup
-
getForcedId
- Specified by:
getForcedId
in classBaseHasResource
-
setForcedId
- Specified by:
setForcedId
in classBaseHasResource
-
getIdDt
- Specified by:
getIdDt
in interfaceIBasePersistedResource
- Specified by:
getIdDt
in interfaceIBaseResourceEntity
-
getIdType
public org.hl7.fhir.instance.model.api.IIdType getIdType(ca.uhn.fhir.context.FhirContext theContext) -
setCreatedByMatchUrl
-
getCreatedByMatchUrl
-
setLuceneIndexData
-
getSearchParamPresents
-
getFhirId
Get the FHIR resource id.- Returns:
- the resource id, or null if the resource doesn't have a client-assigned id, and hasn't been saved to the db to get a server-assigned id yet.
-
setFhirId
-