org.hibernate.cfg.AvailableSettings#QUERY_PLAN_CACHE_ENABLED , org.hibernate.cfg.AvailableSettings#QUERY_PLAN_CACHE_MAX_SIZE
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public NonSelectQueryPlan | |
| public int | |
| public int | |
| public boolean | |
| public HqlInterpretation | resolveHqlInterpretation(String queryString, Class<?> expectedResultType, Function<String, SqmStatement<?>> creator)
Deprecated
for removal.
|
| public default HqlInterpretation | |
| public ParameterInterpretation | |
| public <R> SelectQueryPlan |
| cacheNonSelectQueryPlan | back to summary |
|---|---|
| public void cacheNonSelectQueryPlan(QueryInterpretationCache. | |
| close | back to summary |
|---|---|
| public void close() 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. | |
| getNonSelectQueryPlan | back to summary |
|---|---|
| public NonSelectQueryPlan getNonSelectQueryPlan(QueryInterpretationCache. | |
| getNumberOfCachedHqlInterpretations | back to summary |
|---|---|
| public int getNumberOfCachedHqlInterpretations() | |
| getNumberOfCachedQueryPlans | back to summary |
|---|---|
| public int getNumberOfCachedQueryPlans() | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() | |
| resolveHqlInterpretation | back to summary |
|---|---|
| public HqlInterpretation resolveHqlInterpretation(String queryString, Class<?> expectedResultType, Function<String, SqmStatement<?>> creator)
Deprecated for removal.
| |
| resolveHqlInterpretation | back to summary |
|---|---|
| public default HqlInterpretation resolveHqlInterpretation(String queryString, Class<?> expectedResultType, HqlTranslator translator) | |
| resolveNativeQueryParameters | back to summary |
|---|---|
| public ParameterInterpretation resolveNativeQueryParameters(String queryString, Function<String, ParameterInterpretation> creator) | |
| resolveSelectQueryPlan | back to summary |
|---|---|
| public <R> SelectQueryPlan | |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public default QueryInterpretationCache. | prepareForStore()
The possibility for a cache key to do defensive copying in case it has mutable state. |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() | |
| prepareForStore | back to summary |
|---|---|
| public default QueryInterpretationCache. The possibility for a cache key to do defensive copying in case it has mutable state. | |