- All Implemented Interfaces:
- Serializable
public class CachedQueryResult
extends Object
implements Serializable
Implements an object which can be used to cache complete query results.
The problem.
If we cache real values we must support updates of cached queries in case any
entity which can be part of a query result will be removed or updated.
Thats nearly impossible.
The solution.
We do not cache real values here ... instead we cache the primary keys
of all result entities only. Those list of ID's can be used then to get the real
cache entities and values. Of course missing entities must be handled gracefully then.
- See Also:
- Serialized Form