public class HQLQueryPlan extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
|
HQLQueryPlan(String hql,
boolean shallow,
Map<String,Filter> enabledFilters,
SessionFactoryImplementor factory)
Constructs a HQLQueryPlan
|
|
HQLQueryPlan(String hql,
boolean shallow,
Map<String,Filter> enabledFilters,
SessionFactoryImplementor factory,
EntityGraphQueryHint entityGraphQueryHint) |
protected |
HQLQueryPlan(String hql,
String collectionRole,
boolean shallow,
Map<String,Filter> enabledFilters,
SessionFactoryImplementor factory,
EntityGraphQueryHint entityGraphQueryHint) |
Modifier and Type | Method and Description |
---|---|
Class |
getDynamicInstantiationResultType() |
Set |
getEnabledFilterNames() |
ParameterMetadata |
getParameterMetadata() |
Set |
getQuerySpaces() |
ReturnMetadata |
getReturnMetadata() |
String |
getSourceQuery() |
String[] |
getSqlStrings() |
QueryTranslator[] |
getTranslators()
Access to the underlying translators associated with this query
|
Set |
getUtilizedFilterNames() |
boolean |
isSelect() |
boolean |
isShallow() |
int |
performExecuteUpdate(QueryParameters queryParameters,
SessionImplementor session)
Coordinates the efforts to perform an execution across all the included query translators.
|
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)
Coordinates the efforts to perform a list across all the included query translators.
|
ScrollableResults |
performScroll(QueryParameters queryParameters,
SessionImplementor session)
Coordinates the efforts to perform a scroll across all the included query translators.
|
public HQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory)
hql
- The HQL queryshallow
- Whether the execution is to be shallow or notenabledFilters
- The enabled filters (we only keep the names)factory
- The factorypublic HQLQueryPlan(String hql, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
protected HQLQueryPlan(String hql, String collectionRole, boolean shallow, Map<String,Filter> enabledFilters, SessionFactoryImplementor factory, EntityGraphQueryHint entityGraphQueryHint)
public String getSourceQuery()
public Set getQuerySpaces()
public ParameterMetadata getParameterMetadata()
public ReturnMetadata getReturnMetadata()
public Set getEnabledFilterNames()
public String[] getSqlStrings()
public Set getUtilizedFilterNames()
public boolean isShallow()
public List performList(QueryParameters queryParameters, SessionImplementor session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the querypublic Iterator performIterate(QueryParameters queryParameters, EventSource session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the querypublic ScrollableResults performScroll(QueryParameters queryParameters, SessionImplementor session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the querypublic int performExecuteUpdate(QueryParameters queryParameters, SessionImplementor session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the executionpublic QueryTranslator[] getTranslators()
public Class getDynamicInstantiationResultType()
public boolean isSelect()
Copyright © 2016 JBoss by Red Hat. All rights reserved.