类 PojoInstantiator
- java.lang.Object
-
- org.hibernate.tuple.PojoInstantiator
-
- 所有已实现的接口:
Serializable,Instantiator
- 直接已知子类:
PojoEntityInstantiator
public class PojoInstantiator extends Object implements Instantiator, Serializable
Defines a POJO-based instantiator for use from the tuplizers.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 PojoInstantiator(Class componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)PojoInstantiator(Class mappedClass, ReflectionOptimizer.InstantiationOptimizer optimizer, boolean embeddedIdentifier)PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ObjectapplyInterception(Object entity)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.
-
-
-
构造器详细资料
-
PojoInstantiator
public PojoInstantiator(Class mappedClass, ReflectionOptimizer.InstantiationOptimizer optimizer, boolean embeddedIdentifier)
-
PojoInstantiator
public PojoInstantiator(Component component, ReflectionOptimizer.InstantiationOptimizer optimizer)
-
PojoInstantiator
public PojoInstantiator(Class componentClass, ReflectionOptimizer.InstantiationOptimizer optimizer)
-
-
方法详细资料
-
instantiate
public Object instantiate()
从接口复制的说明:InstantiatorPerform the requested instantiation.- 指定者:
instantiate在接口中Instantiator- 返回:
- The instantiated data structure.
-
instantiate
public Object instantiate(Serializable id)
从接口复制的说明:InstantiatorPerform the requested entity instantiation. This form is never called for component instantiation, only entity instantiation.- 指定者:
instantiate在接口中Instantiator- 参数:
id- The id of the entity to be instantiated.- 返回:
- An appropriately instantiated entity.
-
isInstance
public boolean isInstance(Object object)
从接口复制的说明:InstantiatorPerforms check to see if the given object is an instance of the entity or component which this Instantiator instantiates.- 指定者:
isInstance在接口中Instantiator- 参数:
object- The object to be checked.- 返回:
- True is the object does represent an instance of the underlying entity/component.
-
-