Class QueryData
- java.lang.Object
-
- com.ibm.fhir.persistence.jdbc.domain.QueryData
-
public class QueryData extends Object
A simple wrapper used by theSearchQueryRendererto hold the current query -SelectAdapter- and the table alias values if this query wants to advertise them. Immutable.
-
-
Constructor Summary
Constructors Constructor Description QueryData(SelectAdapter query, String lrAlias, String paramAlias, String resourceType, int chainDepth)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChainDepth()Getter for the chainDepthStringgetLRAlias()Convenience function to generate the alias we use for parent xx_logical_resource tables Typically used when correlating a parameter sub-join with the parent queryStringgetParamAlias()Get the alias of the parameter table if one is advertised by this query blockSelectAdaptergetQuery()StringgetResourceType()
-
-
-
Constructor Detail
-
QueryData
public QueryData(SelectAdapter query, String lrAlias, String paramAlias, String resourceType, int chainDepth)
Public constructor- Parameters:
query-lrAlias-paramAlias-resourceType-chainDepth-
-
-
Method Detail
-
getLRAlias
public String getLRAlias()
Convenience function to generate the alias we use for parent xx_logical_resource tables Typically used when correlating a parameter sub-join with the parent query- Returns:
-
getParamAlias
public String getParamAlias()
Get the alias of the parameter table if one is advertised by this query block- Returns:
-
getQuery
public SelectAdapter getQuery()
- Returns:
- the query
-
getChainDepth
public int getChainDepth()
Getter for the chainDepth- Returns:
- the chainDepth which is >= 0
-
getResourceType
public String getResourceType()
- Returns:
- the resourceType
-
-