FileDocCategorySizeDatePackage
DynamicMapEntityTuplizer.javaAPI DocHibernate 3.2.52788Thu Jul 13 19:09:20 BST 2006org.hibernate.tuple.entity

DynamicMapEntityTuplizer

public class DynamicMapEntityTuplizer extends org.hibernate.tuple.entity.AbstractEntityTuplizer
An {@link EntityTuplizer} specific to the dynamic-map entity mode.
author
Steve Ebersole
author
Gavin King

Fields Summary
static final Log
log
Constructors Summary
DynamicMapEntityTuplizer(EntityMetamodel entityMetamodel, org.hibernate.mapping.PersistentClass mappedEntity)


	    
		super(entityMetamodel, mappedEntity);
	
Methods Summary
protected org.hibernate.tuple.InstantiatorbuildInstantiator(org.hibernate.mapping.PersistentClass mappingInfo)

        return new DynamicMapInstantiator( mappingInfo );
	
private org.hibernate.property.PropertyAccessorbuildPropertyAccessor(org.hibernate.mapping.Property mappedProperty)

		if ( mappedProperty.isBackRef() ) {
			return mappedProperty.getPropertyAccessor(null);
		}
		else {
			return PropertyAccessorFactory.getDynamicMapPropertyAccessor();
		}
	
protected org.hibernate.property.GetterbuildPropertyGetter(org.hibernate.mapping.Property mappedProperty, org.hibernate.mapping.PersistentClass mappedEntity)

		return buildPropertyAccessor(mappedProperty).getGetter( null, mappedProperty.getName() );
	
protected org.hibernate.property.SetterbuildPropertySetter(org.hibernate.mapping.Property mappedProperty, org.hibernate.mapping.PersistentClass mappedEntity)

		return buildPropertyAccessor(mappedProperty).getSetter( null, mappedProperty.getName() );
	
protected org.hibernate.proxy.ProxyFactorybuildProxyFactory(org.hibernate.mapping.PersistentClass mappingInfo, org.hibernate.property.Getter idGetter, org.hibernate.property.Setter idSetter)


		ProxyFactory pf = new MapProxyFactory();
		try {
			//TODO: design new lifecycle for ProxyFactory
			pf.postInstantiate(
					getEntityName(),
					null,
					null,
					null,
					null,
					null
			);
		}
		catch ( HibernateException he ) {
			log.warn( "could not create proxy factory for:" + getEntityName(), he );
			pf = null;
		}
		return pf;
	
public java.lang.ClassgetConcreteProxyClass()

		return Map.class;
	
public org.hibernate.EntityModegetEntityMode()

		return EntityMode.MAP;
	
public java.lang.ClassgetMappedClass()

		return Map.class;
	
public booleanisInstrumented()

		return false;