Top Description Fields Constructors Methods
org.hibernate.proxy.dom4j

public Class Dom4jProxyFactory

extends Object
implements ProxyFactory
Class Inheritance
All Implemented Interfaces
org.hibernate.proxy.ProxyFactory
Imports
java.io.Serializable, java.lang.reflect.Method, java.util.Set, org.hibernate.HibernateException, org.hibernate.engine.SessionImplementor, org.hibernate.proxy.HibernateProxy, .ProxyFactory, org.hibernate.type.CompositeType

Builds proxies for "dom4j" entity representations.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public HibernateProxy
getProxy(Serializable
The id value for the proxy to be generated.
id
,
SessionImplementor
The session to which the generated proxy will be associated.
session
)

Implements org.hibernate.proxy.ProxyFactory.getProxy.

Create a new proxy
public void
postInstantiate(String
The name of the entity for which this factory should generate proxies.
entityName
,
Class<T>
The entity class for which to generate proxies; not always the same as the entityName.
persistentClass
,
Set<E>
The interfaces to expose in the generated proxy; HibernateProxy is already included in this collection.
interfaces
,
Method
Reference to the identifier getter method; invocation on this method should not force initialization
getIdentifierMethod
,
Method
Reference to the identifier setter method; invocation on this method should not force initialization
setIdentifierMethod
,
CompositeType
For composite identifier types, a reference to the type of the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind mappings.
componentIdType
)

Implements org.hibernate.proxy.ProxyFactory.postInstantiate.

Called immediately after instantiation
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entityNameback to summary
private String entityName

Constructor Detail

Dom4jProxyFactoryback to summary
public Dom4jProxyFactory()

Method Detail

getProxyback to summary
public HibernateProxy getProxy(Serializable id, SessionImplementor session) throws HibernateException

Implements org.hibernate.proxy.ProxyFactory.getProxy.

Create a new proxy

Parameters
id:Serializable

Doc from org.hibernate.proxy.ProxyFactory.getProxy.

The id value for the proxy to be generated.

session:SessionImplementor

Doc from org.hibernate.proxy.ProxyFactory.getProxy.

The session to which the generated proxy will be associated.

Returns:HibernateProxy

Doc from org.hibernate.proxy.ProxyFactory.getProxy.

The generated proxy.

Exceptions
HibernateException:

Doc from org.hibernate.proxy.ProxyFactory.getProxy.

Indicates problems generating the requested proxy.

postInstantiateback to summary
public void postInstantiate(String entityName, Class<T> persistentClass, Set<E> interfaces, Method getIdentifierMethod, Method setIdentifierMethod, CompositeType componentIdType) throws HibernateException

Implements org.hibernate.proxy.ProxyFactory.postInstantiate.

Called immediately after instantiation

Parameters
entityName:String

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

The name of the entity for which this factory should generate proxies.

persistentClass:Class<T>

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

The entity class for which to generate proxies; not always the same as the entityName.

interfaces:Set<E>

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

The interfaces to expose in the generated proxy; HibernateProxy is already included in this collection.

getIdentifierMethod:Method

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

Reference to the identifier getter method; invocation on this method should not force initialization

setIdentifierMethod:Method

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

Reference to the identifier setter method; invocation on this method should not force initialization

componentIdType:CompositeType

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

For composite identifier types, a reference to the type of the identifier property; again accessing the id should generally not cause initialization - but need to bear in mind mappings.

Exceptions
HibernateException:

Doc from org.hibernate.proxy.ProxyFactory.postInstantiate.

Indicates a problem completing post instantiation initialization.