org.hibernate.tuple
Class Dom4jTuplizer

java.lang.Object
  extended byorg.hibernate.tuple.AbstractTuplizer
      extended byorg.hibernate.tuple.Dom4jTuplizer
All Implemented Interfaces:
EntityTuplizer, Tuplizer

public class Dom4jTuplizer
extends AbstractTuplizer

Implementation of Dom4jTuplizer.

Author:
Steve Ebersole

Field Summary
 
Fields inherited from class org.hibernate.tuple.AbstractTuplizer
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()
          Return the pojo class managed by this tuplizer.
 boolean isLazyPropertyLoadingAvailable()
           
 
Methods inherited from class org.hibernate.tuple.AbstractTuplizer
afterInitialize, createProxy, getEntityMetamodel, getEntityName, getFactory, getInstantiator, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getProxyFactory, getVersion, hasProxy, hasUninitializedLazyProperties, instantiate, instantiate, isInstance, isLifecycleImplementor, isValidatableImplementor, resetIdentifier, setIdentifier, setPropertyValue, setPropertyValue, setPropertyValues, shouldGetAllProperties, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEntityMode

public EntityMode getEntityMode()
Specified by:
getEntityMode in class AbstractTuplizer

buildPropertyGetter

protected Getter buildPropertyGetter(Property mappedProperty,
                                     PersistentClass mappedEntity)
Specified by:
buildPropertyGetter in class AbstractTuplizer

buildPropertySetter

protected Setter buildPropertySetter(Property mappedProperty,
                                     PersistentClass mappedEntity)
Specified by:
buildPropertySetter in class AbstractTuplizer

buildInstantiator

protected Instantiator buildInstantiator(PersistentClass persistentClass)
Specified by:
buildInstantiator in class AbstractTuplizer

getIdentifier

public Serializable getIdentifier(Object entityOrId)
                           throws HibernateException
Description copied from interface: EntityTuplizer
Extract the identifier value from the given entity.

Specified by:
getIdentifier in interface EntityTuplizer
Overrides:
getIdentifier in class AbstractTuplizer
Throws:
HibernateException

buildProxyFactory

protected ProxyFactory buildProxyFactory(PersistentClass mappingInfo,
                                         Getter idGetter,
                                         Setter idSetter)
Specified by:
buildProxyFactory in class AbstractTuplizer

getMappedClass

public Class getMappedClass()
Description copied from interface: Tuplizer
Return the pojo class managed by this tuplizer.

Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO.

todo : be really nice to not have this here since it is essentially pojo specific...

Returns:
The persistent class.

getConcreteProxyClass

public Class getConcreteProxyClass()
Description copied from interface: EntityTuplizer
Returns the java class to which generated proxies will be typed.

Returns:
The java class to which generated proxies will be typed

isLazyPropertyLoadingAvailable

public boolean isLazyPropertyLoadingAvailable()