Class CachingLocalEntityProvider<T>

java.lang.Object
com.vaadin.featurepack.data.jpacontainer.provider.LocalEntityProvider<T>
com.vaadin.featurepack.data.jpacontainer.provider.CachingLocalEntityProvider<T>
All Implemented Interfaces:
CachingEntityProvider<T>, EntityProvider<T>, Serializable

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

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

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: