Package org.hibernate.tuple
Class PojoInstantiator
- java.lang.Object
-
- org.hibernate.tuple.PojoInstantiator
-
- All Implemented Interfaces:
Serializable
,Instantiator
@Deprecated(since="6.0") public class PojoInstantiator extends Object implements Instantiator, Serializable
Deprecated.LikeInstantiator
itself, deprecated.Defines a POJO-based instantiator for use from the tuplizers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PojoInstantiator(Class<?> componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
Deprecated.SeePojoInstantiator
PojoInstantiator(Class<?> mappedClass, ReflectionOptimizer.InstantiationOptimizer optimizer, boolean embeddedIdentifier)
Deprecated.SeePojoInstantiator
PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer)
Deprecated.SeePojoInstantiator
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Object
applyInterception(Object entity)
Deprecated.Object
instantiate()
Deprecated.Perform the requested instantiation.Object
instantiate(Object id)
Deprecated.Perform the requested entity instantiation.boolean
isInstance(Object object)
Deprecated.Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.
-
-
-
Constructor Detail
-
PojoInstantiator
@Deprecated(since="6.0") public PojoInstantiator(Class<?> mappedClass, ReflectionOptimizer.InstantiationOptimizer optimizer, boolean embeddedIdentifier)
Deprecated.SeePojoInstantiator
-
PojoInstantiator
@Deprecated(since="6.0") public PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer)
Deprecated.SeePojoInstantiator
-
PojoInstantiator
@Deprecated(since="6.0") public PojoInstantiator(Class<?> componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
Deprecated.SeePojoInstantiator
-
-
Method Detail
-
instantiate
public Object instantiate()
Deprecated.Description copied from interface:Instantiator
Perform the requested instantiation.- Specified by:
instantiate
in interfaceInstantiator
- Returns:
- The instantiated data structure.
-
instantiate
public Object instantiate(Object id)
Deprecated.Description copied from interface:Instantiator
Perform the requested entity instantiation.This form is never called for component instantiation, only entity instantiation.
- Specified by:
instantiate
in interfaceInstantiator
- Parameters:
id
- The id of the entity to be instantiated.- Returns:
- An appropriately instantiated entity.
-
isInstance
public boolean isInstance(Object object)
Deprecated.Description copied from interface:Instantiator
Performs check to see if the given object is an instance of the entity or component which this Instantiator instantiates.- Specified by:
isInstance
in interfaceInstantiator
- Parameters:
object
- The object to be checked.- Returns:
- True is the object does represent an instance of the underlying entity/component.
-
-