Package cz.cvut.kbss.jopa.proxy.lazy.gen
Interface LazyLoadingEntityProxy<T>
- Type Parameters:
T
- Type of the lazily-loaded value
- All Superinterfaces:
LazyLoadingProxy<T>
,LazyLoadingProxyPropertyAccessor<T>
public interface LazyLoadingEntityProxy<T>
extends LazyLoadingProxyPropertyAccessor<T>, LazyLoadingProxy<T>
Implemented by generated lazy loading entity proxy classes.
It defines the default method for triggering lazy loading.
-
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for which this is a lazy loading proxy.default String
Common implementation ofObject.toString()
.default T
Triggers value loading.Methods inherited from interface cz.cvut.kbss.jopa.proxy.lazy.LazyLoadingProxy
getLoadedValue, isLoaded, unwrap
Methods inherited from interface cz.cvut.kbss.jopa.proxy.lazy.gen.LazyLoadingProxyPropertyAccessor
getFieldSpec, getOwner, getPersistenceContext, setFieldSpec, setOwner, setPersistenceContext, setValue
-
Method Details
-
triggerLazyLoading
Description copied from interface:LazyLoadingProxy
Triggers value loading.- Specified by:
triggerLazyLoading
in interfaceLazyLoadingProxy<T>
- Returns:
- Loaded value
-
getProxiedClass
Gets the entity class for which this is a lazy loading proxy.- Returns:
- Proxied entity class
-
stringify
Common implementation ofObject.toString()
.- Returns:
- String representation of this proxy
-