Package ca.uhn.fhir.jpa.model.entity
Class ResourceIndexedSearchParamDate
java.lang.Object
ca.uhn.fhir.jpa.model.entity.BasePartitionable
ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
ca.uhn.fhir.jpa.model.entity.ResourceIndexedSearchParamDate
- All Implemented Interfaces:
Serializable
@Embeddable
@Entity
public class ResourceIndexedSearchParamDate
extends BaseResourceIndexedSearchParam
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionField which stores an integer representation of YYYYMDD as calculated by Calendar e.g.Fields inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
myHashIdentity
-
Constructor Summary
ConstructorDescriptionConstructorResourceIndexedSearchParamDate
(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, Date theLow, String theLowString, Date theHigh, String theHighString, String theOriginalValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
static Long
calculateOrdinalValue
(Date theDate) void
<T extends BaseResourceIndex>
voidcopyMutableValuesFrom
(T theSource) boolean
Subclasses must implementgetId()
Get the Resource this SP indexesprotected Long
getTimeFromDate
(Date date) int
hashCode()
Subclasses must implementboolean
matches
(ca.uhn.fhir.model.api.IQueryParameterType theParam) void
setResource
(ResourceTable theResource) setValueHigh
(Date theValueHigh) setValueLow
(Date theValueLow) ca.uhn.fhir.model.api.IQueryParameterType
toString()
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedSearchParam
calculateHashIdentity, calculateHashIdentity, calculateHashIdentity, getHashIdentity, getParamName, getPartitionSettings, getResourcePid, getResourceType, getStorageSettings, getUpdated, isIndexStorageOptimized, isMissing, optimizeIndexStorage, restoreParamName, setHashIdentity, setMissing, setParamName, setPartitionSettings, setResourceType, setStorageSettings, setUpdated
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionId, setPlaceholderHashesIfMissing
Methods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionId
-
Field Details
-
myValueHigh
-
myValueLow
-
myValueLowDateOrdinal
Field which stores an integer representation of YYYYMDD as calculated by Calendar e.g. 2019-01-20 -> 20190120 -
myValueHighDateOrdinal
-
-
Constructor Details
-
ResourceIndexedSearchParamDate
public ResourceIndexedSearchParamDate()Constructor -
ResourceIndexedSearchParamDate
public ResourceIndexedSearchParamDate(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, Date theLow, String theLowString, Date theHigh, String theHighString, String theOriginalValue) Constructor
-
-
Method Details
-
getValueLowDateOrdinal
-
getValueHighDateOrdinal
-
copyMutableValuesFrom
- Overrides:
copyMutableValuesFrom
in classBaseResourceIndexedSearchParam
-
clearHashes
- Specified by:
clearHashes
in classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashes
in classBaseResourceIndex
-
equals
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
equals
in classBaseResourceIndex
-
getId
- Specified by:
getId
in classBaseResourceIndexedSearchParam
-
setId
- Specified by:
setId
in classBaseResourceIndex
-
getTimeFromDate
-
getValueHigh
-
setValueHigh
-
getValueLow
-
setValueLow
-
hashCode
Description copied from class:BaseResourceIndex
Subclasses must implement- Specified by:
hashCode
in classBaseResourceIndex
-
toQueryParameterType
- Specified by:
toQueryParameterType
in classBaseResourceIndexedSearchParam
-
toString
- Overrides:
toString
in classBasePartitionable
-
matches
- Overrides:
matches
in classBaseResourceIndexedSearchParam
-
calculateOrdinalValue
-
getResource
Description copied from class:BaseResourceIndexedSearchParam
Get the Resource this SP indexes- Specified by:
getResource
in classBaseResourceIndexedSearchParam
-
setResource
- Specified by:
setResource
in classBaseResourceIndexedSearchParam
-