| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BoundedConcurrentHashMap | |
| private static final Logger | |
| private final BoundedConcurrentHashMap | |
| private final BoundedConcurrentHashMap | queryPlanCache
the cache of the actual plans... |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | QueryInterpretationCacheStandardImpl(int maxQueryPlanCount, Supplier<StatisticsImplementor> statisticsSupplier)
|
| hqlInterpretationCache | back to summary |
|---|---|
| private final BoundedConcurrentHashMap<Object, HqlInterpretation> hqlInterpretationCache | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| nativeQueryParamCache | back to summary |
|---|---|
| private final BoundedConcurrentHashMap<String, ParameterInterpretation> nativeQueryParamCache | |
| queryPlanCache | back to summary |
|---|---|
| private final BoundedConcurrentHashMap<QueryInterpretationCache. the cache of the actual plans... | |
| statisticsSupplier | back to summary |
|---|---|
| private final Supplier<StatisticsImplementor> statisticsSupplier | |
| QueryInterpretationCacheStandardImpl | back to summary |
|---|---|
| public QueryInterpretationCacheStandardImpl(int maxQueryPlanCount, Supplier<StatisticsImplementor> statisticsSupplier) | |
| cacheNonSelectQueryPlan | back to summary |
|---|---|
| public void cacheNonSelectQueryPlan(QueryInterpretationCache. Implements org.
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close the cache 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.
| |
| createHqlInterpretation | back to summary |
|---|---|
| protected static HqlInterpretation createHqlInterpretation(String queryString, Class<?> expectedResultType, HqlTranslator translator, StatisticsImplementor statistics) | |
| getNonSelectQueryPlan | back to summary |
|---|---|
| public NonSelectQueryPlan getNonSelectQueryPlan(QueryInterpretationCache. Implements org.
| |
| getNumberOfCachedHqlInterpretations | back to summary |
|---|---|
| public int getNumberOfCachedHqlInterpretations() Implements org.
| |
| getNumberOfCachedQueryPlans | back to summary |
|---|---|
| public int getNumberOfCachedQueryPlans() Implements org.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Implements org.
| |
| resolveHqlInterpretation | back to summary |
|---|---|
| public HqlInterpretation resolveHqlInterpretation(String queryString, Class<?> expectedResultType, Function<String, SqmStatement<?>> creator) Implements org.
| |
| resolveHqlInterpretation | back to summary |
|---|---|
| public HqlInterpretation resolveHqlInterpretation(String queryString, Class<?> expectedResultType, HqlTranslator translator) Overrides default org.
| |
| resolveNativeQueryParameters | back to summary |
|---|---|
| public ParameterInterpretation resolveNativeQueryParameters(String queryString, Function<String, ParameterInterpretation> creator) Implements org.
| |
| resolveSelectQueryPlan | back to summary |
|---|---|
| public <R> SelectQueryPlan Implements org.
| |
| 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 |
| expectedResultType | back to summary |
|---|---|
| private final Class<?> expectedResultType | |
| queryString | back to summary |
|---|---|
| private final String queryString | |
| HqlInterpretationCacheKey | back to summary |
|---|---|
| public HqlInterpretationCacheKey(String queryString, Class<?> expectedResultType) | |
| 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
| |