FileDocCategorySizeDatePackage
EmbeddedComponentType.javaAPI DocHibernate 3.2.51290Thu Jul 13 19:09:20 BST 2006org.hibernate.type

EmbeddedComponentType

public class EmbeddedComponentType extends ComponentType
author
Gavin King

Fields Summary
Constructors Summary
public EmbeddedComponentType(org.hibernate.tuple.component.ComponentMetamodel metamodel)

		super( metamodel );
	
Methods Summary
public java.lang.Objectinstantiate(java.lang.Object parent, org.hibernate.engine.SessionImplementor session)

		final boolean useParent = parent!=null &&
		                          //TODO: Yuck! This is not quite good enough, it's a quick
		                          //hack around the problem of having a to-one association
		                          //that refers to an embedded component:
		                          super.getReturnedClass().isInstance(parent);

		return useParent ? parent : super.instantiate(parent, session);
	
public booleanisEmbedded()

		return true;
	
public booleanisMethodOf(java.lang.reflect.Method method)

		return ( ( ComponentTuplizer ) tuplizerMapping.getTuplizer(EntityMode.POJO) ).isMethodOf(method);