类 HQLQueryPlan
- java.lang.Object
-
- org.hibernate.engine.query.spi.HQLQueryPlan
-
- 所有已实现的接口:
Serializable
- 直接已知子类:
FilterQueryPlan
public class HQLQueryPlan extends Object implements Serializable
Defines a query execution plan for an HQL query (or filter).- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 限定符 构造器 说明 HQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory)Constructs a HQLQueryPlanHQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)protectedHQLQueryPlan(String hql, String collectionRole, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClassgetDynamicInstantiationResultType()SetgetEnabledFilterNames()ParameterMetadataImplgetParameterMetadata()SetgetQuerySpaces()ReturnMetadatagetReturnMetadata()StringgetSourceQuery()String[]getSqlStrings()This method should only be called for debugging purposes as it regenerates a new array every time.QueryTranslator[]getTranslators()Access to the underlying translators associated with this querySetgetUtilizedFilterNames()booleanisSelect()booleanisShallow()booleanisUpdate()intperformExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session)Coordinates the efforts to perform an execution across all the included query translators.IteratorperformIterate(QueryParameters queryParameters, EventSource session)Coordinates the efforts to perform an iterate across all the included query translators.ListperformList(QueryParameters queryParameters, SharedSessionContractImplementor session)Coordinates the efforts to perform a list across all the included query translators.ScrollableResultsImplementorperformScroll(QueryParameters queryParameters, SharedSessionContractImplementor session)Coordinates the efforts to perform a scroll across all the included query translators.
-
-
-
构造器详细资料
-
HQLQueryPlan
public HQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory)
Constructs a HQLQueryPlan- 参数:
hql- The HQL queryshallow- Whether the execution is to be shallow or notenabledFilters- The enabled filters (we only keep the names)factory- The factory
-
HQLQueryPlan
public HQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
-
HQLQueryPlan
protected HQLQueryPlan(String hql, String collectionRole, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
-
-
方法详细资料
-
getSourceQuery
public String getSourceQuery()
-
getQuerySpaces
public Set getQuerySpaces()
-
getParameterMetadata
public ParameterMetadataImpl getParameterMetadata()
-
getReturnMetadata
public ReturnMetadata getReturnMetadata()
-
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()
-
performList
public List performList(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException
Coordinates the efforts to perform a list across all the included query translators.- 参数:
queryParameters- The query parameterssession- The session- 返回:
- The query result list
- 抛出:
HibernateException- Indicates a problem performing the query
-
performIterate
public Iterator performIterate(QueryParameters queryParameters, EventSource session) throws HibernateException
Coordinates the efforts to perform an iterate across all the included query translators.- 参数:
queryParameters- The query parameterssession- The session- 返回:
- The query result iterator
- 抛出:
HibernateException- Indicates a problem performing the query
-
performScroll
public ScrollableResultsImplementor performScroll(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException
Coordinates the efforts to perform a scroll across all the included query translators.- 参数:
queryParameters- The query parameterssession- The session- 返回:
- The query result iterator
- 抛出:
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.- 参数:
queryParameters- The query parameterssession- The session- 返回:
- The aggregated "affected row" count
- 抛出:
HibernateException- Indicates a problem performing the execution
-
getTranslators
public QueryTranslator[] getTranslators()
Access to the underlying translators associated with this query- 返回:
- The translators
-
getDynamicInstantiationResultType
public Class getDynamicInstantiationResultType()
-
isSelect
public boolean isSelect()
-
isUpdate
public boolean isUpdate()
-
-