org.hibernate.tuple.entity

Class Dom4jEntityTuplizer

Implemented Interfaces:
EntityTuplizer, Tuplizer

public class Dom4jEntityTuplizer
extends AbstractEntityTuplizer

An EntityTuplizer specific to the dom4j entity mode.
Authors:
Steve Ebersole
Gavin King

Field Summary

Fields inherited from class org.hibernate.tuple.entity.AbstractEntityTuplizer

getters, hasCustomAccessors, propertySpan, setters

Method Summary

protected Instantiator
buildInstantiator(PersistentClass persistentClass)
protected Getter
buildPropertyGetter(Property mappedProperty, PersistentClass mappedEntity)
protected Setter
buildPropertySetter(Property mappedProperty, PersistentClass mappedEntity)
protected ProxyFactory
buildProxyFactory(PersistentClass mappingInfo, Getter idGetter, Setter idSetter)
Class
getConcreteProxyClass()
Returns the java class to which generated proxies will be typed.
EntityMode
getEntityMode()
Serializable
getIdentifier(Object entityOrId)
Extract the identifier value from the given entity.
Class
getMappedClass()
boolean
isInstrumented()
Is it an instrumented POJO?

Methods inherited from class org.hibernate.tuple.entity.AbstractEntityTuplizer

afterInitialize, buildInstantiator, buildPropertyGetter, buildPropertySetter, buildProxyFactory, createProxy, getComponentValue, getEntityMetamodel, getEntityMode, getEntityName, getFactory, getIdentifier, getInstantiator, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getProxyFactory, getSubclassEntityNames, getVersion, hasProxy, hasUninitializedLazyProperties, instantiate, instantiate, isInstance, isLifecycleImplementor, isValidatableImplementor, resetIdentifier, setIdentifier, setPropertyValue, setPropertyValue, setPropertyValues, shouldGetAllProperties, toString

Method Details

buildInstantiator

protected Instantiator buildInstantiator(PersistentClass persistentClass)
Overrides:
buildInstantiator in interface AbstractEntityTuplizer

buildPropertyGetter

protected Getter buildPropertyGetter(Property mappedProperty,
                                     PersistentClass mappedEntity)
Overrides:
buildPropertyGetter in interface AbstractEntityTuplizer

buildPropertySetter

protected Setter buildPropertySetter(Property mappedProperty,
                                     PersistentClass mappedEntity)
Overrides:
buildPropertySetter in interface AbstractEntityTuplizer

buildProxyFactory

protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo,
                                         Getter idGetter,
                                         Setter idSetter)
Overrides:
buildProxyFactory in interface AbstractEntityTuplizer

getConcreteProxyClass

public Class getConcreteProxyClass()
Returns the java class to which generated proxies will be typed.
Specified by:
getConcreteProxyClass in interface EntityTuplizer
Returns:
The java class to which generated proxies will be typed

getEntityMode

public EntityMode getEntityMode()
Overrides:
getEntityMode in interface AbstractEntityTuplizer

getIdentifier

public Serializable getIdentifier(Object entityOrId)
            throws HibernateException
Extract the identifier value from the given entity.
Specified by:
getIdentifier in interface EntityTuplizer
Overrides:
getIdentifier in interface AbstractEntityTuplizer
Parameters:
Returns:
The identifier value.
Throws:
HibernateException - If the entity does not define an identifier property, or an error occurrs accessing its value.

getMappedClass

public Class getMappedClass()
Specified by:
getMappedClass in interface Tuplizer

isInstrumented

public boolean isInstrumented()
Is it an instrumented POJO?
Specified by:
isInstrumented in interface EntityTuplizer