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() |
ParameterMetadataImpl |
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() |
boolean |
isUpdate() |
int |
performExecuteUpdate(QueryParameters queryParameters,
SharedSessionContractImplementor 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,
SharedSessionContractImplementor session)
Coordinates the efforts to perform a list across all the included query translators.
|
ScrollableResultsImplementor |
performScroll(QueryParameters queryParameters,
SharedSessionContractImplementor 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 ParameterMetadataImpl getParameterMetadata()
public ReturnMetadata getReturnMetadata()
public Set getEnabledFilterNames()
public String[] getSqlStrings()
public Set getUtilizedFilterNames()
public boolean isShallow()
public List performList(QueryParameters queryParameters, SharedSessionContractImplementor 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 ScrollableResultsImplementor performScroll(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the querypublic int performExecuteUpdate(QueryParameters queryParameters, SharedSessionContractImplementor session) throws HibernateException
queryParameters
- The query parameterssession
- The sessionHibernateException
- Indicates a problem performing the executionpublic QueryTranslator[] getTranslators()
public Class getDynamicInstantiationResultType()
public boolean isSelect()
public boolean isUpdate()
Copyright © 2019 JBoss by Red Hat. All rights reserved.