Package ca.uhn.fhir.jpa.entity
Class Search
java.lang.Object
ca.uhn.fhir.jpa.entity.Search
- All Implemented Interfaces:
ca.uhn.fhir.rest.server.util.ICachedSearchDetails
,Serializable
@Entity
public class Search
extends Object
implements ca.uhn.fhir.rest.server.util.ICachedSearchDetails, Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInclude
(SearchInclude theInclude) static String
createSearchQueryStringForStorage
(String theSearchQueryString, RequestPartitionId theRequestPartitionId) ca.uhn.fhir.rest.param.HistorySearchStyleEnum
getId()
ca.uhn.fhir.rest.param.DateRangeParam
int
int
Note that this is not always set! We set this if we're storing a Search inSearchStatusEnum.PASSCMPLET
status since we'll need the map in order to restart, but otherwise we save space and time by not storing it.Note that this field may have the request partition IDs prepended to itgetUuid()
void
void
setCreated
(Date theCreated) void
setDeleted
(Boolean theDeleted) void
setExpiryOrNull
(Date theExpiryOrNull) void
setFailureCode
(Integer theFailureCode) void
setFailureMessage
(String theFailureMessage) void
setHistorySearchStyle
(ca.uhn.fhir.rest.param.HistorySearchStyleEnum theHistorySearchStyle) void
setLastUpdated
(ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated) void
setLastUpdated
(Date theLowerBound, Date theUpperBound) void
setNumBlocked
(int theNumBlocked) void
setNumFound
(int theNumFound) void
void
setPreferredPageSize
(Integer thePreferredPageSize) void
setResourceId
(Long theResourceId) void
setResourceType
(String theResourceType) void
setSearchParameterMap
(SearchParameterMap theSearchParameterMap) void
setSearchQueryString
(String theSearchQueryString, RequestPartitionId theRequestPartitionId) void
setSearchType
(SearchTypeEnum theSearchType) void
setStatus
(SearchStatusEnum theStatus) void
setTotalCount
(Integer theTotalCount) void
Set
<ca.uhn.fhir.model.api.Include> Set
<ca.uhn.fhir.model.api.Include> toIncludesList
(boolean iterate) Set
<ca.uhn.fhir.model.api.Include> Set
<ca.uhn.fhir.model.api.Include> toRevIncludesList
(boolean iterate) toString()
-
Field Details
-
SEARCH_UUID_COLUMN_LENGTH
Long enough to accommodate a full UUID (36) with an additional prefix used by megascale (12)- See Also:
-
HFJ_SEARCH
- See Also:
-
SEARCH_UUID
- See Also:
-
-
Constructor Details
-
Search
public Search()Constructor
-
-
Method Details
-
getSizeModeSize
-
toString
-
getNumBlocked
-
setNumBlocked
-
getExpiryOrNull
-
setExpiryOrNull
-
getDeleted
-
setDeleted
-
getCreated
-
setCreated
-
getFailureCode
-
setFailureCode
-
getFailureMessage
-
setFailureMessage
-
getId
-
getIncludes
-
getLastUpdated
-
setLastUpdated
-
getLastUpdatedHigh
-
getLastUpdatedLow
-
getNumFound
-
setNumFound
-
getPreferredPageSize
-
setPreferredPageSize
-
getResourceId
-
setResourceId
-
getResourceType
-
setResourceType
-
getSearchQueryString
Note that this field may have the request partition IDs prepended to it -
setSearchQueryString
public void setSearchQueryString(String theSearchQueryString, RequestPartitionId theRequestPartitionId) -
getSearchType
-
setSearchType
-
getStatus
-
setStatus
-
getTotalCount
-
setTotalCount
-
getUuid
- Specified by:
getUuid
in interfaceca.uhn.fhir.rest.server.util.ICachedSearchDetails
-
setUuid
- Specified by:
setUuid
in interfaceca.uhn.fhir.rest.server.util.ICachedSearchDetails
-
setLastUpdated
-
toIncludesList
-
toRevIncludesList
-
toIncludesList
-
toRevIncludesList
-
addInclude
-
getVersion
-
getSearchParameterMap
Note that this is not always set! We set this if we're storing a Search inSearchStatusEnum.PASSCMPLET
status since we'll need the map in order to restart, but otherwise we save space and time by not storing it. -
setSearchParameterMap
-
setCannotBeReused
- Specified by:
setCannotBeReused
in interfaceca.uhn.fhir.rest.server.util.ICachedSearchDetails
-
getOffset
-
setOffset
-
getHistorySearchStyle
-
setHistorySearchStyle
public void setHistorySearchStyle(ca.uhn.fhir.rest.param.HistorySearchStyleEnum theHistorySearchStyle) -
createSearchQueryStringForStorage
@Nonnull public static String createSearchQueryStringForStorage(@Nonnull String theSearchQueryString, @Nonnull RequestPartitionId theRequestPartitionId)
-