CGLIBProxyFactorypublic class CGLIBProxyFactory extends Object implements org.hibernate.proxy.ProxyFactory
Fields Summary |
---|
protected static final Class[] | NO_CLASSES | private Class | persistentClass | private String | entityName | private Class[] | interfaces | private Method | getIdentifierMethod | private Method | setIdentifierMethod | private org.hibernate.type.AbstractComponentType | componentIdType | private Class | factory |
Methods Summary |
---|
public org.hibernate.proxy.HibernateProxy | getProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)
return CGLIBLazyInitializer.getProxy(
factory,
entityName,
persistentClass,
interfaces,
getIdentifierMethod,
setIdentifierMethod,
componentIdType,
id,
session
);
| public void | postInstantiate(java.lang.String entityName, java.lang.Class persistentClass, java.util.Set interfaces, java.lang.reflect.Method getIdentifierMethod, java.lang.reflect.Method setIdentifierMethod, org.hibernate.type.AbstractComponentType componentIdType)
this.entityName = entityName;
this.persistentClass = persistentClass;
this.interfaces = (Class[]) interfaces.toArray(NO_CLASSES);
this.getIdentifierMethod = getIdentifierMethod;
this.setIdentifierMethod = setIdentifierMethod;
this.componentIdType = componentIdType;
factory = CGLIBLazyInitializer.getProxyFactory(persistentClass, this.interfaces);
|
|