FileDocCategorySizeDatePackage
CGLIBProxyFactory.javaAPI DocHibernate 3.2.51748Fri Feb 03 15:15:20 GMT 2006org.hibernate.proxy.pojo.cglib

CGLIBProxyFactory

public class CGLIBProxyFactory extends Object implements org.hibernate.proxy.ProxyFactory
author
Gavin King

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
Constructors Summary
Methods Summary
public org.hibernate.proxy.HibernateProxygetProxy(java.io.Serializable id, org.hibernate.engine.SessionImplementor session)


		return CGLIBLazyInitializer.getProxy(
				factory, 
				entityName, 
				persistentClass, 
				interfaces, 
				getIdentifierMethod, 
				setIdentifierMethod,
				componentIdType,
				id, 
				session
			);
	
public voidpostInstantiate(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);