public class QueryPlanCache extends Object implements Serializable
AvailableSettings.QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE
,
AvailableSettings.QUERY_PLAN_CACHE_MAX_SIZE
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PARAMETER_METADATA_MAX_COUNT
The default strong reference count.
|
static int |
DEFAULT_QUERY_PLAN_MAX_COUNT
The default soft reference count.
|
Constructor and Description |
---|
QueryPlanCache(SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
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 static final int DEFAULT_PARAMETER_METADATA_MAX_COUNT
public static final int DEFAULT_QUERY_PLAN_MAX_COUNT
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)
public void cleanup()
Copyright © 2018 JBoss by Red Hat. All rights reserved.