Environment#QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE, Environment#QUERY_PLAN_CACHE_MAX_SIZE
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_PARAMETER_METADATA_MAX_COUNT
The default strong reference count. |
| public static final int | DEFAULT_QUERY_PLAN_MAX_COUNT
The default soft reference count. |
| private final SessionFactoryImplementor | factory
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private static final CoreMessageLogger | |
| private NativeQueryInterpreter | |
| private final BoundedConcurrentHashMap | parameterMetadataCache
simple cache of param metadata based on query string. |
| private final BoundedConcurrentHashMap | queryPlanCache
the cache of the actual plans... |
| private QueryPlanCache. |
| Access | Constructor and Description |
|---|---|
| public | QueryPlanCache(final SessionFactoryImplementor
The SessionFactory factory, QueryPlanCache.
Deprecated
as a consequence of
Constructs the QueryPlanCache to be used by the given SessionFactory
SessionFactoryImplementor being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public FilterQueryPlan | Returns: The query planThe HQL filter fragment filterString, String The collection being filtered collectionRole, boolean Whether the execution will be shallow shallow, Map<String, Filter> The filters enabled on the Session enabledFilters)Get the query plan for the given collection HQL filter fragment, creating it and caching it if not already cached |
| public HQLQueryPlan | Returns: The query planThe HQL query string queryString, boolean Whether the execution will be shallow shallow, Map<String, Filter> The filters enabled on the Session enabledFilters)Get the query plan for the given HQL query, creating it and caching it if not already cached |
| public NativeQueryInterpreter | |
| public NativeSQLQueryPlan | Returns: The query planThe native SQL query specification spec)Get the query plan for a native SQL query, creating it and caching it if not already cached |
| public ParameterMetadata | Returns: The parameter metadataThe query query, boolean isOrdinalParameterZeroBased)Obtain the parameter metadata for given native-sql query. |
| DEFAULT_PARAMETER_METADATA_MAX_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_PARAMETER_METADATA_MAX_COUNT The default strong reference count. | |
| DEFAULT_QUERY_PLAN_MAX_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_QUERY_PLAN_MAX_COUNT The default soft reference count. | |
| factory | back to summary |
|---|---|
| private final SessionFactoryImplementor factory
Deprecated as a consequence of | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| nativeQueryInterpreter | back to summary |
|---|---|
| private NativeQueryInterpreter nativeQueryInterpreter | |
| parameterMetadataCache | back to summary |
|---|---|
| private final BoundedConcurrentHashMap<QueryPlanCache. simple cache of param metadata based on query string. Ideally, the original "user-supplied query" string should be used to obtain this metadata (i.e., not the para-list-expanded query string) to avoid unnecessary cache entries. Used solely for caching param metadata for native-sql queries, seegetSQLParameterMetadata for a
discussion as to why...
| |
| queryPlanCache | back to summary |
|---|---|
| private final BoundedConcurrentHashMap<K, V> queryPlanCache the cache of the actual plans... | |
| queryPlanCreator | back to summary |
|---|---|
| private QueryPlanCache. | |
| QueryPlanCache | back to summary |
|---|---|
| public QueryPlanCache(final SessionFactoryImplementor factory, QueryPlanCache. Deprecated as a consequence of Constructs the QueryPlanCache to be used by the given SessionFactory
| |
| cleanup | back to summary |
|---|---|
| public void cleanup() Clean up the caches when the SessionFactory is closed. Note that depending on the cache strategy implementation chosen, clearing the cache might not reclaim all the memory. Typically, when using LIRS, clearing the cache only invalidates the entries but the outdated entries are kept in memory until they are replaced by others. It is not considered a memory leak as the cache is bounded. | |
| getFilterQueryPlan | back to summary |
|---|---|
| public FilterQueryPlan getFilterQueryPlan(String filterString, String collectionRole, boolean shallow, Map<String, Filter> enabledFilters) throws QueryException, MappingException Get the query plan for the given collection HQL filter fragment, creating it and caching it if not already cached
| |
| getHQLQueryPlan | back to summary |
|---|---|
| public HQLQueryPlan getHQLQueryPlan(String queryString, boolean shallow, Map<String, Filter> enabledFilters) throws QueryException, MappingException Get the query plan for the given HQL query, creating it and caching it if not already cached
| |
| getNativeQueryInterpreter | back to summary |
|---|---|
| public NativeQueryInterpreter getNativeQueryInterpreter() | |
| getNativeSQLQueryPlan | back to summary |
|---|---|
| public NativeSQLQueryPlan getNativeSQLQueryPlan(final NativeSQLQuerySpecification spec) Get the query plan for a native SQL query, creating it and caching it if not already cached
| |
| getSQLParameterMetadata | back to summary |
|---|---|
| public ParameterMetadata getSQLParameterMetadata(final String query, boolean isOrdinalParameterZeroBased) Obtain the parameter metadata for given native-sql query. for native-sql queries, the param metadata is determined outside any relation to a query plan, because query plan creation and/or retrieval for a native-sql query depends on all of the return types having been set, which might not be the case up-front when param metadata would be most useful
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| filterName | back to summary |
|---|---|
| private final String filterName | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| parameterMetadata | back to summary |
|---|---|
| private final Map<String, Integer> parameterMetadata | |
| DynamicFilterKey | back to summary |
|---|---|
| private DynamicFilterKey(FilterImpl filter) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Set | |
| private final int | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| collectionRole | back to summary |
|---|---|
| private final String collectionRole | |
| filterNames | back to summary |
|---|---|
| private final Set<String> filterNames | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| query | back to summary |
|---|---|
| private final String query | |
| shallow | back to summary |
|---|---|
| private final boolean shallow | |
| FilterQueryPlanKey | back to summary |
|---|---|
public FilterQueryPlanKey(String query, String collectionRole, boolean shallow, Map<K, V> enabledFilters)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final int | |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| filterKeys | back to summary |
|---|---|
| private final Set<QueryPlanCache. | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| query | back to summary |
|---|---|
| private final String query | |
| shallow | back to summary |
|---|---|
| private final boolean shallow | |
| HQLQueryPlanKey | back to summary |
|---|---|
| public HQLQueryPlanKey(String query, boolean shallow, Map<K, V> enabledFilters) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| isOrdinalParameterZeroBased | back to summary |
|---|---|
| private final boolean isOrdinalParameterZeroBased | |
| query | back to summary |
|---|---|
| private final String query | |
| ParameterMetadataKey | back to summary |
|---|---|
| public ParameterMetadataKey(String query, boolean isOrdinalParameterZeroBased) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Method and Description |
|---|---|
| public HQLQueryPlan | createQueryPlan(String queryString, boolean shallow, Map<String, Filter> enabledFilters, SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| createQueryPlan | back to summary |
|---|---|
| public HQLQueryPlan createQueryPlan(String queryString, boolean shallow, Map<String, Filter> enabledFilters, SessionFactoryImplementor factory)
Deprecated as a consequence of | |