JavassistProxyFactorypublic class JavassistProxyFactory extends Object implements Serializable, org.hibernate.proxy.ProxyFactoryA {@link ProxyFactory} implementation for producing Javassist-based proxies. |
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 JavassistLazyInitializer.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 = JavassistLazyInitializer.getProxyFactory( persistentClass, this.interfaces );
|
|