Class HQLQueryPlan

    • Method Detail

      • getSourceQuery

        public String getSourceQuery()
      • getQuerySpaces

        public Set getQuerySpaces()
      • getParameterMetadata

        public org.hibernate.query.internal.ParameterMetadataImpl getParameterMetadata()
      • getEnabledFilterNames

        public Set getEnabledFilterNames()
      • getSqlStrings

        public String[] getSqlStrings()
        This method should only be called for debugging purposes as it regenerates a new array every time.
      • getUtilizedFilterNames

        public Set getUtilizedFilterNames()
      • isShallow

        public boolean isShallow()
      • guessResultSize

        protected int guessResultSize​(RowSelection rowSelection)
        If we're able to guess a likely size of the results we can optimize allocation of our data structures. Essentially if we detect the user is not using pagination, we attempt to use the FetchSize as a reasonable hint. If fetch size is not being set either, it is reasonable to expect that we're going to have a single hit. In such a case it would be tempting to return a constant of value one, but that's dangerous as it doesn't scale up appropriately for example with an ArrayList if the guess is wrong.
        Parameters:
        rowSelection -
        Returns:
        a reasonable size to use for allocation
      • performIterate

        public Iterator performIterate​(QueryParameters queryParameters,
                                       EventSource session)
                                throws HibernateException
        Coordinates the efforts to perform an iterate across all the included query translators.
        Parameters:
        queryParameters - The query parameters
        session - The session
        Returns:
        The query result iterator
        Throws:
        HibernateException - Indicates a problem performing the query
      • performExecuteUpdate

        public int performExecuteUpdate​(QueryParameters queryParameters,
                                        SharedSessionContractImplementor session)
                                 throws HibernateException
        Coordinates the efforts to perform an execution across all the included query translators.
        Parameters:
        queryParameters - The query parameters
        session - The session
        Returns:
        The aggregated "affected row" count
        Throws:
        HibernateException - Indicates a problem performing the execution
      • getTranslators

        public QueryTranslator[] getTranslators()
        Access to the underlying translators associated with this query
        Returns:
        The translators
      • getDynamicInstantiationResultType

        public Class getDynamicInstantiationResultType()
      • isSelect

        public boolean isSelect()
      • isUpdate

        public boolean isUpdate()