Class QueryData
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.jdbc.domain.QueryData
-
public class QueryData extends java.lang.Object
A simple wrapper used by theSearchQueryRenderer
to 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, java.lang.String lrAlias, java.lang.String paramAlias, java.lang.String resourceType, int chainDepth)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChainDepth()
Getter for the chainDepthjava.lang.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 queryjava.lang.String
getParamAlias()
Get the alias of the parameter table if one is advertised by this query blockSelectAdapter
getQuery()
java.lang.String
getResourceType()
-
-
-
Constructor Detail
-
QueryData
public QueryData(SelectAdapter query, java.lang.String lrAlias, java.lang.String paramAlias, java.lang.String resourceType, int chainDepth)
Public constructor- Parameters:
query
-lrAlias
-paramAlias
-resourceType
-chainDepth
-
-
-
Method Detail
-
getLRAlias
public java.lang.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 java.lang.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 java.lang.String getResourceType()
- Returns:
- the resourceType
-
-