Class QueryData


  • public class QueryData
    extends java.lang.Object
    A simple wrapper used by the SearchQueryRenderer 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 chainDepth
      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
      java.lang.String getParamAlias()
      Get the alias of the parameter table if one is advertised by this query block
      SelectAdapter getQuery()  
      java.lang.String getResourceType()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
      • getChainDepth

        public int getChainDepth()
        Getter for the chainDepth
        Returns:
        the chainDepth which is >= 0
      • getResourceType

        public java.lang.String getResourceType()
        Returns:
        the resourceType