org.hibernate.engine.query.spi
Class HQLQueryPlan

java.lang.Object
  extended by org.hibernate.engine.query.spi.HQLQueryPlan
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FilterQueryPlan

public class HQLQueryPlan
extends Object
implements Serializable

Defines a query execution plan for an HQL query (or filter).

See Also:
Serialized Form

Constructor Summary
  HQLQueryPlan(String hql, boolean shallow, Map enabledFilters, SessionFactoryImplementor factory)
           
protected HQLQueryPlan(String hql, String collectionRole, boolean shallow, Map enabledFilters, SessionFactoryImplementor factory)
           
 
Method Summary
 Class getDynamicInstantiationResultType()
           
 Set getEnabledFilterNames()
           
 ParameterMetadata getParameterMetadata()
           
 Set getQuerySpaces()
           
 ReturnMetadata getReturnMetadata()
           
 String getSourceQuery()
           
 String[] getSqlStrings()
           
 QueryTranslator[] getTranslators()
           
 Set getUtilizedFilterNames()
           
 boolean isShallow()
           
 int performExecuteUpdate(QueryParameters queryParameters, SessionImplementor session)
           
 Iterator performIterate(QueryParameters queryParameters, EventSource session)
          Coordinates the efforts to perform an iterate across all the included query translators.
 List performList(QueryParameters queryParameters, SessionImplementor session)
           
 ScrollableResults performScroll(QueryParameters queryParameters, SessionImplementor session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HQLQueryPlan

public HQLQueryPlan(String hql,
                    boolean shallow,
                    Map enabledFilters,
                    SessionFactoryImplementor factory)

HQLQueryPlan

protected HQLQueryPlan(String hql,
                       String collectionRole,
                       boolean shallow,
                       Map enabledFilters,
                       SessionFactoryImplementor factory)
Method Detail

getSourceQuery

public String getSourceQuery()

getQuerySpaces

public Set getQuerySpaces()

getParameterMetadata

public ParameterMetadata getParameterMetadata()

getReturnMetadata

public ReturnMetadata getReturnMetadata()

getEnabledFilterNames

public Set getEnabledFilterNames()

getSqlStrings

public String[] getSqlStrings()

getUtilizedFilterNames

public Set getUtilizedFilterNames()

isShallow

public boolean isShallow()

performList

public List performList(QueryParameters queryParameters,
                        SessionImplementor session)
                 throws HibernateException
Throws:
HibernateException

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

performScroll

public ScrollableResults performScroll(QueryParameters queryParameters,
                                       SessionImplementor session)
                                throws HibernateException
Throws:
HibernateException

performExecuteUpdate

public int performExecuteUpdate(QueryParameters queryParameters,
                                SessionImplementor session)
                         throws HibernateException
Throws:
HibernateException

getTranslators

public QueryTranslator[] getTranslators()

getDynamicInstantiationResultType

public Class getDynamicInstantiationResultType()


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.