类 PojoComponentTuplizer
- java.lang.Object
-
- org.hibernate.tuple.component.AbstractComponentTuplizer
-
- org.hibernate.tuple.component.PojoComponentTuplizer
-
- 所有已实现的接口:
Serializable,ComponentTuplizer,Tuplizer
public class PojoComponentTuplizer extends AbstractComponentTuplizer
AComponentTuplizerspecific to the pojo entity mode.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.hibernate.tuple.component.AbstractComponentTuplizer
getters, hasCustomAccessors, instantiator, propertySpan, setters
-
-
构造器概要
构造器 构造器 说明 PojoComponentTuplizer(Component component)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected GetterbuildGetter(Component component, Property prop)protected InstantiatorbuildInstantiator(Component component)protected SetterbuildSetter(Component component, Property prop)ClassgetMappedClass()Return the pojo class managed by this tuplizer.ObjectgetParent(Object component)Retrieve the current value of the parent property.Object[]getPropertyValues(Object component)Extract the current values contained on the given entity.booleanhasParentProperty()Does the component managed by this tuplizer contain a parent property?booleanisMethodOf(Method method)Is the given method available via the managed component as a property getter?protected voidsetComponentClass(Component component)voidsetParent(Object component, Object parent, SessionFactoryImplementor factory)Set the value of the parent property.voidsetPropertyValues(Object component, Object[] values)Inject the given values into the given entity.-
从类继承的方法 org.hibernate.tuple.component.AbstractComponentTuplizer
getGetter, getPropertyValue, instantiate, isInstance
-
-
-
-
构造器详细资料
-
PojoComponentTuplizer
public PojoComponentTuplizer(Component component)
-
-
方法详细资料
-
getMappedClass
public Class getMappedClass()
从接口复制的说明:TuplizerReturn the pojo class managed by this tuplizer. Need to determine how to best handle this for the Tuplizers for EntityModes other than POJO. todo : be really nice to not have this here since it is essentially pojo specific...- 返回:
- The persistent class.
-
getPropertyValues
public Object[] getPropertyValues(Object component) throws HibernateException
从接口复制的说明:TuplizerExtract the current values contained on the given entity.- 指定者:
getPropertyValues在接口中Tuplizer- 覆盖:
getPropertyValues在类中AbstractComponentTuplizer- 参数:
component- The entity from which to extract values.- 返回:
- The current property values.
- 抛出:
HibernateException
-
setPropertyValues
public void setPropertyValues(Object component, Object[] values) throws HibernateException
从接口复制的说明:TuplizerInject the given values into the given entity.- 指定者:
setPropertyValues在接口中Tuplizer- 覆盖:
setPropertyValues在类中AbstractComponentTuplizer- 参数:
component- The entity.values- The values to be injected.- 抛出:
HibernateException
-
getParent
public Object getParent(Object component)
从接口复制的说明:ComponentTuplizerRetrieve the current value of the parent property.- 指定者:
getParent在接口中ComponentTuplizer- 覆盖:
getParent在类中AbstractComponentTuplizer- 参数:
component- The component instance from which to extract the parent property value.- 返回:
- The current value of the parent property.
-
hasParentProperty
public boolean hasParentProperty()
从接口复制的说明:ComponentTuplizerDoes the component managed by this tuplizer contain a parent property?- 指定者:
hasParentProperty在接口中ComponentTuplizer- 覆盖:
hasParentProperty在类中AbstractComponentTuplizer- 返回:
- True if the component does contain a parent property; false otherwise.
-
isMethodOf
public boolean isMethodOf(Method method)
从接口复制的说明:ComponentTuplizerIs the given method available via the managed component as a property getter?- 指定者:
isMethodOf在接口中ComponentTuplizer- 覆盖:
isMethodOf在类中AbstractComponentTuplizer- 参数:
method- The method which to check against the managed component.- 返回:
- True if the managed component is available from the managed component; else false.
-
setParent
public void setParent(Object component, Object parent, SessionFactoryImplementor factory)
从接口复制的说明:ComponentTuplizerSet the value of the parent property.- 指定者:
setParent在接口中ComponentTuplizer- 覆盖:
setParent在类中AbstractComponentTuplizer- 参数:
component- The component instance on which to set the parent.parent- The parent to be set on the component.factory- The current session factory.
-
buildInstantiator
protected Instantiator buildInstantiator(Component component)
-
buildGetter
protected Getter buildGetter(Component component, Property prop)
- 指定者:
buildGetter在类中AbstractComponentTuplizer
-
buildSetter
protected Setter buildSetter(Component component, Property prop)
- 指定者:
buildSetter在类中AbstractComponentTuplizer
-
setComponentClass
protected void setComponentClass(Component component)
-
-