public class

Dom4jEntityTuplizer

extends AbstractEntityTuplizer
java.lang.Object
   ↳ org.hibernate.tuple.entity.AbstractEntityTuplizer
     ↳ org.hibernate.tuple.entity.Dom4jEntityTuplizer

Class Overview

An EntityTuplizer specific to the dom4j entity mode.

Summary

Nested Classes
class Dom4jEntityTuplizer.BasicEntityNameResolver  
[Expand]
Inherited Fields
From class org.hibernate.tuple.entity.AbstractEntityTuplizer
Public Methods
String determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory)
static String extractNodeName(Element element)
Class getConcreteProxyClass()
EntityMode getEntityMode()
EntityNameResolver[] getEntityNameResolvers()
Serializable getIdentifier(Object entityOrId)
Extract the identifier value from the given entity.
Serializable getIdentifier(Object entityOrId, SessionImplementor session)
Extract the identifier value from the given entity.
Class getMappedClass()
boolean isInstrumented()
Protected Methods
Instantiator buildInstantiator(PersistentClass persistentClass)
Build an appropriate Instantiator for the given mapped entity.
Getter buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
Build an appropriate Getter for the given property.
Setter buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
Build an appropriate Setter for the given property.
ProxyFactory buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)
Build an appropriate ProxyFactory for the given mapped entity.
[Expand]
Inherited Methods
From class org.hibernate.tuple.entity.AbstractEntityTuplizer
From class java.lang.Object
From interface org.hibernate.tuple.Tuplizer
From interface org.hibernate.tuple.entity.EntityTuplizer

Public Methods

public String determineConcreteSubclassEntityName (Object entityInstance, SessionFactoryImplementor factory)

public static String extractNodeName (Element element)

public Class getConcreteProxyClass ()

public EntityMode getEntityMode ()

public EntityNameResolver[] getEntityNameResolvers ()

public Serializable getIdentifier (Object entityOrId)

Extract the identifier value from the given entity.

Parameters
entityOrId The entity from which to extract the identifier value.
Returns
  • The identifier value.

public Serializable getIdentifier (Object entityOrId, SessionImplementor session)

Extract the identifier value from the given entity.

Parameters
entityOrId The entity from which to extract the identifier value.
session The session from which is requests originates
Returns
  • The identifier value.

public Class getMappedClass ()

public boolean isInstrumented ()

Protected Methods

protected Instantiator buildInstantiator (PersistentClass persistentClass)

Build an appropriate Instantiator for the given mapped entity.

Parameters
persistentClass The mapping information regarding the mapped entity.
Returns
  • An appropriate Instantiator instance.

protected Getter buildPropertyGetter (Property mappedProperty, PersistentClass mappedEntity)

Build an appropriate Getter for the given property.

Parameters
mappedProperty The property to be accessed via the built Getter.
mappedEntity The entity information regarding the mapped entity owning this property.
Returns
  • An appropriate Getter instance.

protected Setter buildPropertySetter (Property mappedProperty, PersistentClass mappedEntity)

Build an appropriate Setter for the given property.

Parameters
mappedProperty The property to be accessed via the built Setter.
mappedEntity The entity information regarding the mapped entity owning this property.
Returns
  • An appropriate Setter instance.

protected ProxyFactory buildProxyFactory (PersistentClass mappingInfo, Getter idGetter, Setter idSetter)

Build an appropriate ProxyFactory for the given mapped entity.

Parameters
mappingInfo The mapping information regarding the mapped entity.
idGetter The constructed Getter relating to the entity's id property.
idSetter The constructed Setter relating to the entity's id property.
Returns
  • An appropriate ProxyFactory instance.