
Package ca.uhn.fhir.jpa.model.entity
Class BaseHasResource
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseHasResource
- All Implemented Interfaces:
IBasePersistedResource<JpaPid>
,IResourceLookup<JpaPid>
,IBaseResourceEntity
,Serializable
- Direct Known Subclasses:
ResourceHistoryTable
,ResourceTable
@MappedSuperclass
public abstract class BaseHasResource
extends BasePartitionable
implements IBaseResourceEntity, IBasePersistedResource<JpaPid>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract BaseTag
addTag
(TagDefinition theDef) If the resource is deleted, returns the date/time that the resource was deleted at.ca.uhn.fhir.context.FhirVersionEnum
abstract ForcedId
abstract Long
getId()
ca.uhn.fhir.model.primitive.InstantDt
abstract Long
abstract String
abstract Collection<? extends BaseTag>
getTags()
ca.uhn.fhir.model.primitive.InstantDt
abstract long
boolean
void
setDeleted
(Date theDate) void
setFhirVersion
(ca.uhn.fhir.context.FhirVersionEnum theFhirVersion) abstract void
setForcedId
(ForcedId theForcedId) void
setHasTags
(boolean theHasTags) void
setPublished
(ca.uhn.fhir.model.primitive.InstantDt thePublished) void
setPublished
(Date thePublished) void
setTransientForcedId
(String theTransientForcedId) void
setUpdated
(Date theUpdated) Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId, setPartitionId, toString
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.cross.IBasePersistedResource
getIdDt, isDeleted, setNotDeleted
Methods inherited from interface ca.uhn.fhir.jpa.model.entity.IBaseResourceEntity
getIdDt, getPartitionId
Methods inherited from interface ca.uhn.fhir.jpa.model.cross.IResourceLookup
getPersistentId
-
Field Details
-
RES_PUBLISHED
- See Also:
-
RES_UPDATED
- See Also:
-
-
Constructor Details
-
BaseHasResource
public BaseHasResource()
-
-
Method Details
-
getTransientForcedId
-
setTransientForcedId
-
addTag
-
getDeleted
Description copied from interface:IResourceLookup
If the resource is deleted, returns the date/time that the resource was deleted at. Otherwise, returnsnull
- Specified by:
getDeleted
in interfaceIBaseResourceEntity
- Specified by:
getDeleted
in interfaceIResourceLookup<JpaPid>
-
getFhirVersion
- Specified by:
getFhirVersion
in interfaceIBaseResourceEntity
-
setFhirVersion
-
getForcedId
-
setForcedId
-
getId
- Specified by:
getId
in interfaceIBaseResourceEntity
-
setDeleted
-
getPublished
- Specified by:
getPublished
in interfaceIBaseResourceEntity
-
getPublishedDate
-
setPublished
-
setPublished
-
getResourceId
- Specified by:
getResourceId
in interfaceIBaseResourceEntity
-
getResourceType
- Specified by:
getResourceType
in interfaceIBaseResourceEntity
- Specified by:
getResourceType
in interfaceIResourceLookup<JpaPid>
-
getTags
-
getUpdated
- Specified by:
getUpdated
in interfaceIBaseResourceEntity
-
getUpdatedDate
- Specified by:
getUpdatedDate
in interfaceIBaseResourceEntity
-
setUpdated
-
getVersion
- Specified by:
getVersion
in interfaceIBasePersistedResource<JpaPid>
- Specified by:
getVersion
in interfaceIBaseResourceEntity
-
isHasTags
- Specified by:
isHasTags
in interfaceIBaseResourceEntity
-
setHasTags
-