public class QueryPlanCache extends Object implements Serializable
Environment.QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES
,
Environment.QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
,
Serialized FormConstructor 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
QueryException
MappingException
public FilterQueryPlan getFilterQueryPlan(String filterString, String collectionRole, boolean shallow, Map enabledFilters) throws QueryException, MappingException
QueryException
MappingException
public NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec)
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved