Package org.hibernate.metamodel.internal
Class EntityInstantiatorPojoStandard
- java.lang.Object
-
- org.hibernate.metamodel.internal.AbstractPojoInstantiator
-
- org.hibernate.metamodel.internal.AbstractEntityInstantiatorPojo
-
- org.hibernate.metamodel.internal.EntityInstantiatorPojoStandard
-
- All Implemented Interfaces:
EntityInstantiator,Instantiator
public class EntityInstantiatorPojoStandard extends AbstractEntityInstantiatorPojo
Support for instantiating entity values as POJO representation
-
-
Constructor Summary
Constructors Constructor Description EntityInstantiatorPojoStandard(EntityMetamodel entityMetamodel, PersistentClass persistentClass, JavaType<?> javaType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectapplyInterception(Object entity)booleancanBeInstantiated()Can this entity be instantiated?Objectinstantiate(SessionFactoryImplementor sessionFactory)Create an instance of managed entitybooleanisInstance(Object object, SessionFactoryImplementor sessionFactory)Performs and "instance of" check to see if the given object is an instance of managed structureprotected static Constructor<?>resolveConstructor(Class<?> mappedPojoClass)-
Methods inherited from class org.hibernate.metamodel.internal.AbstractPojoInstantiator
getMappedPojoClass, isAbstract, isSameClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.metamodel.spi.Instantiator
isSameClass
-
-
-
-
Constructor Detail
-
EntityInstantiatorPojoStandard
public EntityInstantiatorPojoStandard(EntityMetamodel entityMetamodel, PersistentClass persistentClass, JavaType<?> javaType)
-
-
Method Detail
-
resolveConstructor
protected static Constructor<?> resolveConstructor(Class<?> mappedPojoClass)
-
canBeInstantiated
public boolean canBeInstantiated()
Description copied from interface:EntityInstantiatorCan this entity be instantiated?
-
applyInterception
protected Object applyInterception(Object entity)
- Overrides:
applyInterceptionin classAbstractEntityInstantiatorPojo
-
isInstance
public boolean isInstance(Object object, SessionFactoryImplementor sessionFactory)
Description copied from interface:InstantiatorPerforms and "instance of" check to see if the given object is an instance of managed structure- Specified by:
isInstancein interfaceInstantiator- Overrides:
isInstancein classAbstractEntityInstantiatorPojo- See Also:
Class.isInstance(java.lang.Object)
-
instantiate
public Object instantiate(SessionFactoryImplementor sessionFactory)
Description copied from interface:EntityInstantiatorCreate an instance of managed entity
-
-