|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LazyLoadingDelegate
The LazyLoadingDelegate is called when a property that is lazily loaded is being accessed through the Vaadin data API. The LazyLoadingDelegate is responsible for ensuring that the lazily loaded property is loaded and accessible.
| Method Summary | ||
|---|---|---|
|
ensureLazyPropertyLoaded(E entity,
String propertyName)
This method is called when a lazily loaded property is accessed in an entity. |
|
void |
setEntityProvider(EntityProvider<?> ep)
Sets the EntityProvider that this delegate is associated with. |
|
| Method Detail |
|---|
<E> E ensureLazyPropertyLoaded(E entity,
String propertyName)
entity that is returned.
entity - The entity containing a lazy property.propertyName - The name of the lazy property to be accessed.
entity with propertyName
attached and accessible. This may be the same instance as passed
in or a new one.void setEntityProvider(EntityProvider<?> ep)
EntityProvider.setLazyLoadingDelegate(LazyLoadingDelegate). The
EntityProvider is used to get the current EntityManager.
ep -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||