Environment#QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES, Environment#QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private SessionFactoryImplementor | |
| private static final Logger | |
| private final SoftLimitMRUCache | planCache
the cache of the actual plans... |
| private final SimpleMRUCache | sqlParamMetadataCache
simple cache of param metadata based on query string. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private ParameterMetadata | |
| public FilterQueryPlan | getFilterQueryPlan(String filterString, String collectionRole, boolean shallow, Map<K, V> enabledFilters)
|
| public HQLQueryPlan | |
| public NativeSQLQueryPlan | |
| public ParameterMetadata | Returns: The parameter metadataThe query query)Obtain the parameter metadata for given native-sql query. |
| factory | back to summary |
|---|---|
| private SessionFactoryImplementor factory | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| planCache | back to summary |
|---|---|
| private final SoftLimitMRUCache planCache the cache of the actual plans... | |
| sqlParamMetadataCache | back to summary |
|---|---|
| private final SimpleMRUCache sqlParamMetadataCache 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, see | |
| QueryPlanCache | back to summary |
|---|---|
| public QueryPlanCache(SessionFactoryImplementor factory) | |
| buildNativeSQLParameterMetadata | back to summary |
|---|---|
private ParameterMetadata buildNativeSQLParameterMetadata(String sqlString)
| |
| getFilterQueryPlan | back to summary |
|---|---|
| public FilterQueryPlan getFilterQueryPlan(String filterString, String collectionRole, boolean shallow, Map<K, V> enabledFilters) throws QueryException, MappingException | |
| getHQLQueryPlan | back to summary |
|---|---|
| public HQLQueryPlan getHQLQueryPlan(String queryString, boolean shallow, Map<K, V> enabledFilters) throws QueryException, MappingException | |
| getNativeSQLQueryPlan | back to summary |
|---|---|
| public NativeSQLQueryPlan getNativeSQLQueryPlan(NativeSQLQuerySpecification spec) | |
| getSQLParameterMetadata | back to summary |
|---|---|
| public ParameterMetadata getSQLParameterMetadata(String query) 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
| |