public class CglibLazyInitializerFactory extends Object implements LazyInitializerFactory
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<String,KunderaProxy> |
proxies |
| Constructor and Description |
|---|
CglibLazyInitializerFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearProxies()
Clears all proxy objects stored in this factory
|
KunderaProxy |
getProxy(String entityName)
Returns proxy instance for a given entity name, null if none exists
|
KunderaProxy |
getProxy(String entityName,
Class<?> persistentClass,
Method getIdentifierMethod,
Method setIdentifierMethod,
Object id,
PersistenceDelegator pd)
Get Lazily loadable @Entity proxy.
|
<E> void |
setProxyOwners(EntityMetadata entityMetadata,
E e)
Sets the entity e as "owner" into proxy it holds.
|
Map<String,KunderaProxy> proxies
public KunderaProxy getProxy(String entityName, Class<?> persistentClass, Method getIdentifierMethod, Method setIdentifierMethod, Object id, PersistenceDelegator pd)
LazyInitializerFactorygetProxy in interface LazyInitializerFactoryentityName - the entity namepersistentClass - the persistent classgetIdentifierMethod - the get identifier methodsetIdentifierMethod - the set identifier methodid - the idpublic KunderaProxy getProxy(String entityName)
LazyInitializerFactorygetProxy in interface LazyInitializerFactorypublic void clearProxies()
LazyInitializerFactoryclearProxies in interface LazyInitializerFactorypublic <E> void setProxyOwners(EntityMetadata entityMetadata, E e)
LazyInitializerFactorysetProxyOwners in interface LazyInitializerFactoryCopyright © 2015. All Rights Reserved.