Class CachingMutableLocalEntityProvider<T>

All Implemented Interfaces:
CachingEntityProvider<T>, EntityProvider<T>, EntityProviderChangeNotifier<T>, MutableEntityProvider<T>, Serializable
Direct Known Subclasses:
CachingBatchableLocalEntityProvider, CachingMutableEntityProvider

public class CachingMutableLocalEntityProvider<T> extends MutableLocalEntityProvider<T> implements CachingEntityProvider<T>
En extended version of MutableLocalEntityProvider that also implements the CachingEntityProvider interface.

This provider can be used in applications in the same manner as MutableLocalEntityProvider, with a few exceptions. By default, the cache is turned off which means that this provider effectively works as a MutableLocalEntityProvider. The cache can be turned on using setCacheEnabled(boolean).

If you are going to edit the entities returned by the container, you should check the setCloneCachedEntities(boolean) before continuing.

Since:
1.0
Author:
Petter Holmström (Vaadin Ltd)
See Also: