Package org.hibernate.tuple
Class PojoInstantiator
java.lang.Object
org.hibernate.tuple.PojoInstantiator
- All Implemented Interfaces:
Serializable,Instantiator
Defines a POJO-based instantiator for use from the tuplizers.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer) PojoInstantiator(PersistentClass persistentClass, ReflectionOptimizer.InstantiationOptimizer optimizer) -
Method Summary
Modifier and TypeMethodDescriptionPerform the requested instantiation.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.
-
Constructor Details
-
PojoInstantiator
-
PojoInstantiator
public PojoInstantiator(PersistentClass persistentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
-
-
Method Details
-
instantiate
Description copied from interface:InstantiatorPerform the requested instantiation.- Specified by:
instantiatein interfaceInstantiator- Returns:
- The instantiated data structure.
-
instantiate
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.
-
isInstance
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.
-