Package org.hibernate.tuple
Class DynamicMapInstantiator
- java.lang.Object
-
- org.hibernate.tuple.DynamicMapInstantiator
-
- All Implemented Interfaces:
Serializable,Instantiator
public class DynamicMapInstantiator extends Object implements Instantiator
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DynamicMapInstantiator()DynamicMapInstantiator(PersistentClass mappingInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MapgenerateMap()Objectinstantiate()Perform the requested instantiation.Objectinstantiate(Serializable id)Perform the requested entity instantiation.booleanisInstance(Object object)Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DynamicMapInstantiator
public DynamicMapInstantiator()
-
DynamicMapInstantiator
public DynamicMapInstantiator(PersistentClass mappingInfo)
-
-
Method Detail
-
instantiate
public final Object instantiate(Serializable id)
Description copied from interface:InstantiatorPerform the requested entity instantiation. This form is never called for component instantiation, only entity instantiation.- Specified by:
instantiatein interfaceInstantiator- Parameters:
id- The id of the entity to be instantiated.- Returns:
- An appropriately instantiated entity.
-
instantiate
public final Object instantiate()
Description copied from interface:InstantiatorPerform the requested instantiation.- Specified by:
instantiatein interfaceInstantiator- Returns:
- The instantiated data structure.
-
isInstance
public final boolean isInstance(Object object)
Description copied from interface:InstantiatorPerforms check to see if the given object is an instance of the entity or component which this Instantiator instantiates.- Specified by:
isInstancein interfaceInstantiator- Parameters:
object- The object to be checked.- Returns:
- True is the object does represent an instance of the underlying entity/component.
-
generateMap
protected Map generateMap()
-
-