
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInclude(SearchInclude theInclude) static StringcreateSearchQueryStringForStorage(String theSearchQueryString, RequestPartitionId theRequestPartitionId) ca.uhn.fhir.rest.param.HistorySearchStyleEnumgetId()ca.uhn.fhir.rest.param.DateRangeParamintintNote that this is not always set!Note that this field may have the request partition IDs prepended to itgetUuid()voidvoidsetCreated(Date theCreated) voidsetDeleted(Boolean theDeleted) voidsetExpiryOrNull(Date theExpiryOrNull) voidsetFailureCode(Integer theFailureCode) voidsetFailureMessage(String theFailureMessage) voidsetHistorySearchStyle(ca.uhn.fhir.rest.param.HistorySearchStyleEnum theHistorySearchStyle) voidsetLastUpdated(ca.uhn.fhir.rest.param.DateRangeParam theLastUpdated) voidsetLastUpdated(Date theLowerBound, Date theUpperBound) voidsetNumBlocked(int theNumBlocked) voidsetNumFound(int theNumFound) voidvoidsetPreferredPageSize(Integer thePreferredPageSize) voidsetResourceId(JpaPid theResourceId) voidsetResourceType(String theResourceType) voidsetSearchParameterMap(SearchParameterMap theSearchParameterMap) voidsetSearchQueryString(String theSearchQueryString, RequestPartitionId theRequestPartitionId) voidsetSearchType(SearchTypeEnum theSearchType) voidsetStatus(SearchStatusEnum theStatus) voidsetTotalCount(Integer theTotalCount) voidSet<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
- Specified by:
getResourceTypein interfaceca.uhn.fhir.rest.server.util.ICachedSearchDetails
-
setResourceType
-
getSearchQueryString
Note that this field may have the request partition IDs prepended to it -
setSearchQueryString
public void setSearchQueryString(String theSearchQueryString, RequestPartitionId theRequestPartitionId) -
getSearchQueryStringHash
-
getSearchType
-
setSearchType
-
getStatus
-
setStatus
-
getTotalCount
-
setTotalCount
-
getUuid
- Specified by:
getUuidin interfaceca.uhn.fhir.rest.server.util.ICachedSearchDetails
-
setUuid
- Specified by:
setUuidin 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.PASSCMPLETstatus 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:
setCannotBeReusedin 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)
-