Package org.hibernate.metamodel.internal
Class AbstractDynamicMapInstantiator
- java.lang.Object
-
- org.hibernate.metamodel.internal.AbstractDynamicMapInstantiator
-
- All Implemented Interfaces:
Instantiator
- Direct Known Subclasses:
EmbeddableInstantiatorDynamicMap
,EntityInstantiatorDynamicMap
public abstract class AbstractDynamicMapInstantiator extends Object implements Instantiator
Base support for dynamic-map instantiators
-
-
Constructor Summary
Constructors Constructor Description AbstractDynamicMapInstantiator(String roleName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map
generateDataMap()
String
getRoleName()
boolean
isInstance(Object object, SessionFactoryImplementor sessionFactory)
Performs and "instance of" check to see if the given object is an instance of managed structureboolean
isSameClass(Object object, SessionFactoryImplementor sessionFactory)
protected boolean
isSameRole(String type)
-
-
-
Field Detail
-
TYPE_KEY
public static final String TYPE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractDynamicMapInstantiator
public AbstractDynamicMapInstantiator(String roleName)
-
-
Method Detail
-
getRoleName
public String getRoleName()
-
isInstance
public boolean isInstance(Object object, SessionFactoryImplementor sessionFactory)
Description copied from interface:Instantiator
Performs and "instance of" check to see if the given object is an instance of managed structure- Specified by:
isInstance
in interfaceInstantiator
- See Also:
Class.isInstance(java.lang.Object)
-
isSameRole
protected boolean isSameRole(String type)
-
isSameClass
public boolean isSameClass(Object object, SessionFactoryImplementor sessionFactory)
- Specified by:
isSameClass
in interfaceInstantiator
- See Also:
Object.equals(java.lang.Object)
-
generateDataMap
protected Map generateDataMap()
-
-