Class ResourceLinkPredicateBuilder
java.lang.Object
ca.uhn.fhir.jpa.search.builder.predicate.BasePredicateBuilder
ca.uhn.fhir.jpa.search.builder.predicate.BaseJoiningPredicateBuilder
ca.uhn.fhir.jpa.search.builder.predicate.ResourceLinkPredicateBuilder
- All Implemented Interfaces:
ICanMakeMissingParamPredicate
public class ResourceLinkPredicateBuilder
extends BaseJoiningPredicateBuilder
implements ICanMakeMissingParamPredicate
-
Constructor Summary
ConstructorDescriptionResourceLinkPredicateBuilder
(QueryStack theQueryStack, SearchQueryBuilder theSearchSqlBuilder, boolean theReversed) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.healthmarketscience.sqlbuilder.Condition
createEverythingPredicate
(String theResourceName, List<String> theSourceResourceNames, JpaPid... theTargetPids) com.healthmarketscience.sqlbuilder.Condition
createPredicate
(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theResourceType, String theParamName, List<String> theQualifiers, List<? extends ca.uhn.fhir.model.api.IQueryParameterType> theReferenceOrParamList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) com.healthmarketscience.sqlbuilder.Condition
Creates the condition for searching for a missing field for a given SearchParameter type.com.healthmarketscience.sqlbuilder.Condition
createPredicateSourcePaths
(String theResourceName, String theParamName) com.healthmarketscience.sqlbuilder.Condition
createPredicateSourcePaths
(List<String> thePathsToMatch) createResourceLinkPaths
(String theResourceName, String theParamName, List<String> theParamQualifiers) com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn[]
Note that this may return the SRC_RESOURCE_ID or TGT_RESOURCE_ID depending on whether we're building a forward or reverse link.com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn[]
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn[]
com.healthmarketscience.sqlbuilder.dbspec.basic.DbColumn
Methods inherited from class ca.uhn.fhir.jpa.search.builder.predicate.BaseJoiningPredicateBuilder
combineWithRequestPartitionIdPredicate, createPartitionIdPredicate, createPredicateResourceIds, getPartitionIdColumn, getTable, replaceDefaultPartitionIdIfNonNull
Methods inherited from class ca.uhn.fhir.jpa.search.builder.predicate.BasePredicateBuilder
addJoin, createConditionForValueWithComparator, getFhirContext, getOrCreateQueryRootTable, getSearchQueryBuilder, setMatchNothing
-
Constructor Details
-
ResourceLinkPredicateBuilder
public ResourceLinkPredicateBuilder(QueryStack theQueryStack, SearchQueryBuilder theSearchSqlBuilder, boolean theReversed) Constructor
-
-
Method Details
-
getColumnSourcePath
-
getColumnTargetResourceId
-
getColumnTargetPartitionId
-
getJoinColumnsForTarget
-
getJoinColumnsForSource
-
getJoinColumns
Note that this may return the SRC_RESOURCE_ID or TGT_RESOURCE_ID depending on whether we're building a forward or reverse link. If you need a specific one of these, usegetJoinColumnsForSource()
orgetJoinColumnsForTarget()
.- Overrides:
getJoinColumns
in classBaseJoiningPredicateBuilder
-
getColumnSrcResourceId
-
getColumnSrcPartitionId
-
getColumnTargetResourceType
-
getResourceIdColumn
- Specified by:
getResourceIdColumn
in classBaseJoiningPredicateBuilder
-
createPredicate
public com.healthmarketscience.sqlbuilder.Condition createPredicate(ca.uhn.fhir.rest.api.server.RequestDetails theRequest, String theResourceType, String theParamName, List<String> theQualifiers, List<? extends ca.uhn.fhir.model.api.IQueryParameterType> theReferenceOrParamList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) -
createPredicateSourcePaths
@Nonnull public com.healthmarketscience.sqlbuilder.Condition createPredicateSourcePaths(List<String> thePathsToMatch) -
createPredicateSourcePaths
public com.healthmarketscience.sqlbuilder.Condition createPredicateSourcePaths(String theResourceName, String theParamName) -
createResourceLinkPaths
-
createEverythingPredicate
@Nonnull public com.healthmarketscience.sqlbuilder.Condition createEverythingPredicate(String theResourceName, List<String> theSourceResourceNames, JpaPid... theTargetPids) -
createPredicateParamMissingValue
public com.healthmarketscience.sqlbuilder.Condition createPredicateParamMissingValue(MissingQueryParameterPredicateParams theParams) Description copied from interface:ICanMakeMissingParamPredicate
Creates the condition for searching for a missing field for a given SearchParameter type. Only use ifStorageSettings.getIndexMissingFields()
is disabled- Specified by:
createPredicateParamMissingValue
in interfaceICanMakeMissingParamPredicate
-