public class QueryPlanCache extends Object implements Serializable
Environment.QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES,
Environment.QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES,
Serialized Form| Constructor and Description |
|---|
QueryPlanCache(SessionFactoryImplementor factory) |
| Modifier and Type | Method and Description |
|---|---|
FilterQueryPlan |
getFilterQueryPlan(String filterString,
String collectionRole,
boolean shallow,
Map enabledFilters) |
HQLQueryPlan |
getHQLQueryPlan(String queryString,
boolean shallow,
Map enabledFilters) |
NativeSQLQueryPlan |
getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) |
ParameterMetadata |
getSQLParameterMetadata(String query)
Obtain the parameter metadata for given native-sql query.
|
public QueryPlanCache(SessionFactoryImplementor factory)
public ParameterMetadata getSQLParameterMetadata(String query)
query - The querypublic HQLQueryPlan getHQLQueryPlan(String queryString, boolean shallow, Map enabledFilters) throws QueryException, MappingException
QueryExceptionMappingExceptionpublic FilterQueryPlan getFilterQueryPlan(String filterString, String collectionRole, boolean shallow, Map enabledFilters) throws QueryException, MappingException
QueryExceptionMappingExceptionpublic NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec)
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved