
Class ResourceIndexedComboStringUnique
- All Implemented Interfaces:
IResourceIndexComboSearchParameter,Serializable,Comparable<ResourceIndexedComboStringUnique>
This table does not include the partition ID in the uniqueness check. This was the case when this table was originally created. In other words, the uniqueness constraint does not include the partition column, and would therefore not be able to guarantee uniqueness local to a partition.
TODO: HAPI FHIR 7.4.0 introduced hashes to this table - In a future release we should move the uniqueness constraint over to using them instead of the long string. At that time we could probably decide whether it makes sense to include the partition ID in the uniqueness check. Null values will be an issue there, we may need to introduce a rule that if you want to enforce uniqueness on a partitioned system you need a non-null default partition ID?
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructorResourceIndexedComboStringUnique(ResourceTable theResource, String theIndexString, org.hl7.fhir.instance.model.api.IIdType theSearchParameterId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic longcalculateHashComplete(String theQueryString) static longcalculateHashComplete2(String theQueryString) voidvoidint<T extends BaseResourceIndex>
voidcopyMutableValuesFrom(T theSource) booleanSubclasses must implementgetId()inthashCode()Subclasses must implementvoidsetHashComplete(Long theHashComplete) voidsetHashComplete2(Long theHashComplete2) voidvoidsetIndexString(String theIndexString) voidThis is called when reindexing a resource on the previously existing index rows.voidsetResource(ResourceTable theResource) voidsetResourceId(Long theResourceId) toString()Methods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndexedCombo
getSearchParameterId, setSearchParameterIdMethods inherited from class ca.uhn.fhir.jpa.model.entity.BaseResourceIndex
setPartitionIdMethods inherited from class ca.uhn.fhir.jpa.model.entity.BasePartitionable
getPartitionIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.fhir.jpa.model.entity.IResourceIndexComboSearchParameter
getSearchParameterId, setSearchParameterId
-
Field Details
-
MAX_STRING_LENGTH
- See Also:
-
IDX_IDXCMPSTRUNIQ_STRING
- See Also:
-
IDX_IDXCMPSTRUNIQ_RESOURCE
- See Also:
-
HFJ_IDX_CMP_STRING_UNIQ
- See Also:
-
-
Constructor Details
-
ResourceIndexedComboStringUnique
public ResourceIndexedComboStringUnique()Constructor -
ResourceIndexedComboStringUnique
public ResourceIndexedComboStringUnique(ResourceTable theResource, String theIndexString, org.hl7.fhir.instance.model.api.IIdType theSearchParameterId) Constructor
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ResourceIndexedComboStringUnique>
-
equals
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
equalsin classBaseResourceIndex
-
copyMutableValuesFrom
- Specified by:
copyMutableValuesFromin classBaseResourceIndex
-
setResourceId
- Specified by:
setResourceIdin classBaseResourceIndex
-
getIndexString
- Specified by:
getIndexStringin interfaceIResourceIndexComboSearchParameter
-
setIndexString
-
getResource
- Specified by:
getResourcein interfaceIResourceIndexComboSearchParameter
-
setResource
- Specified by:
setResourcein interfaceIResourceIndexComboSearchParameter
-
getId
- Specified by:
getIdin classBaseResourceIndex
-
setId
- Specified by:
setIdin classBaseResourceIndex
-
getHashComplete
-
setHashComplete
-
getHashComplete2
-
setHashComplete2
-
setPlaceholderHashesIfMissing
Description copied from class:BaseResourceIndexThis is called when reindexing a resource on the previously existing index rows. This method should set zero/0 values for the hashes, in order to avoid any calculating hashes on existing rows failing. This is important only in cases where hashes are not present on the existing rows, which would only be the case if new hash columns have been added.- Overrides:
setPlaceholderHashesIfMissingin classBaseResourceIndex
-
calculateHashes
- Specified by:
calculateHashesin classBaseResourceIndex
-
calculateHashComplete
-
calculateHashComplete2
-
clearHashes
- Specified by:
clearHashesin classBaseResourceIndex
-
hashCode
Description copied from class:BaseResourceIndexSubclasses must implement- Specified by:
hashCodein classBaseResourceIndex
-
toString
- Overrides:
toStringin classBasePartitionable
-