Package ca.uhn.fhir.jpa.model.entity
Class ResourceHistoryTable
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseHasResource
ca.uhn.fhir.jpa.model.entity.ResourceHistoryTable
- All Implemented Interfaces:
IBasePersistedResource<JpaPid>
,IResourceLookup<JpaPid>
,IBaseResourceEntity
,Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final String
static final int
Fields inherited from class ca.uhn.fhir.jpa.model.entity.BaseHasResource
RES_PUBLISHED, RES_UPDATED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTag
(ResourceTag theTag) addTag
(TagDefinition theTag) getId()
ca.uhn.fhir.model.primitive.IdDt
getIdDt()
getMyId()
Do not delete, required for java bean introspectionbyte[]
getTags()
long
boolean
Returnstrue
if there is a populated resource text (i.e.boolean
void
setEncoding
(ResourceEncodingEnum theEncoding) void
Do not delete, required for java bean introspectionvoid
void
setRequestId
(String theRequestId) void
setResource
(byte[] theResource) void
setResourceId
(Long theResourceId) void
setResourceTable
(ResourceTable theResourceTable) void
setResourceTextVc
(String theResourceTextVc) void
setResourceType
(String theResourceType) void
setSourceUri
(String theSourceUri) void
setTransientForcedId
(String theTransientForcedId) void
setVersion
(long theVersion) This method creates a new HistoryProvenance entity, or might reuse the current one if we've already created one in the current transaction.toString()
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseHasResource
getDeleted, getFhirVersion, getPublished, getPublishedDate, getUpdated, getUpdatedDate, isHasTags, setDeleted, setFhirVersion, setHasTags, setPublished, setPublished, 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
-
Field Details
-
IDX_RESVER_ID_VER
- See Also:
-
SOURCE_URI_LENGTH
- See Also:
-
ENCODING_COL_LENGTH
- See Also:
-
HFJ_RES_VER
- See Also:
-
-
Constructor Details
-
ResourceHistoryTable
public ResourceHistoryTable()Constructor
-
-
Method Details
-
getSourceUri
-
setSourceUri
-
getRequestId
-
setRequestId
-
toString
- Overrides:
toString
in classBasePartitionable
-
getResourceTextVc
-
setResourceTextVc
-
addTag
-
addTag
- Specified by:
addTag
in classBaseHasResource
-
getEncoding
-
setEncoding
-
getId
- Specified by:
getId
in interfaceIBaseResourceEntity
-
getMyId
Do not delete, required for java bean introspection -
setMyId
Do not delete, required for java bean introspection -
getResource
-
setResource
-
getResourceId
- Specified by:
getResourceId
in interfaceIBaseResourceEntity
-
setResourceId
-
getResourceType
- Specified by:
getResourceType
in interfaceIBaseResourceEntity
- Specified by:
getResourceType
in interfaceIResourceLookup<JpaPid>
-
getFhirId
- Specified by:
getFhirId
in interfaceIResourceLookup<JpaPid>
-
setResourceType
-
getTags
- Specified by:
getTags
in classBaseHasResource
-
getVersion
- Specified by:
getVersion
in interfaceIBasePersistedResource<JpaPid>
- Specified by:
getVersion
in interfaceIBaseResourceEntity
-
setVersion
-
isDeleted
- Specified by:
isDeleted
in interfaceIBasePersistedResource<JpaPid>
-
setNotDeleted
- Specified by:
setNotDeleted
in interfaceIBasePersistedResource<JpaPid>
-
getPersistentId
- Specified by:
getPersistentId
in interfaceIResourceLookup<JpaPid>
-
getResourceTable
-
setResourceTable
-
getIdDt
- Specified by:
getIdDt
in interfaceIBasePersistedResource<JpaPid>
- Specified by:
getIdDt
in interfaceIBaseResourceEntity
-
hasResource
Returnstrue
if there is a populated resource text (i.e. eithergetResource()
orgetResourceTextVc()
return a non null value. -
toProvenance
This method creates a new HistoryProvenance entity, or might reuse the current one if we've already created one in the current transaction. This is because we can only increment the version once in a DB transaction (since hibernate manages that number) so creating multipleResourceHistoryProvenanceEntity
entities will result in a constraint error. -
getTransientForcedId
-
setTransientForcedId
-