Package org.hibernate.proxy.dom4j
Class Dom4jProxyFactory
java.lang.Object
org.hibernate.proxy.dom4j.Dom4jProxyFactory
- All Implemented Interfaces:
ProxyFactory
Builds proxies for "dom4j" entity representations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProxy(Serializable id, SessionImplementor session) Create a new proxyvoidpostInstantiate(String entityName, Class persistentClass, Set interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType) Called immediately after instantiation
-
Constructor Details
-
Dom4jProxyFactory
public Dom4jProxyFactory()
-
-
Method Details
-
postInstantiate
public void postInstantiate(String entityName, Class persistentClass, Set interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType) throws HibernateException Called immediately after instantiation- Specified by:
postInstantiatein interfaceProxyFactory- Parameters:
entityName- The name of the entity for which this factory should generate proxies.persistentClass- The entity class for which to generate proxies; not always the same as the entityName.interfaces- The interfaces to expose in the generated proxy;HibernateProxyis already included in this collection.getIdentifierMethod- Reference to the identifier getter method; invocation on this method should not force initializationsetIdentifierMethod- Reference to the identifier setter method; invocation on this method should not force initializationcomponentIdType- For composite identifier types, a reference to thetypeof the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind invalid input: '<'key-many-to-one/> mappings.- Throws:
HibernateException- Indicates a problem completing post instantiation initialization.
-
getProxy
public HibernateProxy getProxy(Serializable id, SessionImplementor session) throws HibernateException Create a new proxy- Specified by:
getProxyin interfaceProxyFactory- Parameters:
id- The id value for the proxy to be generated.session- The session to which the generated proxy will be associated.- Returns:
- The generated proxy.
- Throws:
HibernateException- Indicates problems generating the requested proxy.
-