TimestampsCache to help in recognizing
stale query results.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final QueryResultsRegion | |
| private final TimestampsCache |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> List | |
| public List | get(final QueryKey
The cache key uniquely identifying the query and its
bound parameter arguments key, final Set<String> The query spaces which affect the results of the
query (used to check if cached results are stale) spaces, final SharedSessionContractImplementor The originating session session)Implements org. QueryKey from the cache
region, and then check
if the cached results, if any, are stale.
|
| public List | get(final QueryKey
The cache key uniquely identifying the query and its
bound parameter arguments key, final String[] The query spaces which affect the results of the
query (used to check if cached results are stale) spaces, final SharedSessionContractImplementor The originating session session)Implements org. QueryKey from the cache
region, and then check
if the cached results, if any, are stale.
|
| private QueryResultsCacheImpl. | |
| public QueryResultsRegion | getRegion()
Implements org. |
| public boolean | put(final QueryKey
The cache key uniquely identifying the query and its
bound parameter arguments key, final List<?> The result list to cache results, final SharedSessionContractImplementor The originating session session)Implements org. QueryKey
in the query result cache.
|
| public String |
| cacheRegion | back to summary |
|---|---|
| private final QueryResultsRegion cacheRegion | |
| timestampsCache | back to summary |
|---|---|
| private final TimestampsCache timestampsCache | |
| QueryResultsCacheImpl | back to summary |
|---|---|
| pack-priv QueryResultsCacheImpl(QueryResultsRegion cacheRegion, TimestampsCache timestampsCache) | |
| deepCopy | back to summary |
|---|---|
| private static <T> List | |
| get | back to summary |
|---|---|
| public List Implements org. Doc from org. Attempt to retrieve a cached query result list for the given
| |
| get | back to summary |
|---|---|
| public List Implements org. Doc from org. Attempt to retrieve a cached query result list for the given
| |
| getCachedData | back to summary |
|---|---|
| private QueryResultsCacheImpl. | |
| getRegion | back to summary |
|---|---|
| public QueryResultsRegion getRegion() Implements org. Doc from org. The underlying cache region being used.
| |
| put | back to summary |
|---|---|
| public boolean put(final QueryKey key, final List<?> results, final SharedSessionContractImplementor session) throws HibernateException Implements org. Doc from org. Store a result list of a query with the given
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| results | back to summary |
|---|---|
| private final List<?> results | |
| timestamp | back to summary |
|---|---|
| private final Long timestamp | |
| CacheItem | back to summary |
|---|---|
| pack-priv CacheItem(long timestamp, List<?> results) | |