接口 ComponentTuplizer
-
- 所有超级接口:
Serializable,Tuplizer
public interface ComponentTuplizer extends Tuplizer, Serializable
Defines further responsibilities regarding tuplization based on a mapped components. ComponentTuplizer implementations should have the following constructor signature: (org.hibernate.mapping.Component)- 作者:
- Gavin King, Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ObjectgetParent(Object component)Retrieve the current value of the parent property.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?voidsetParent(Object component, Object parent, SessionFactoryImplementor factory)Set the value of the parent property.-
从接口继承的方法 org.hibernate.tuple.Tuplizer
getGetter, getMappedClass, getPropertyValue, getPropertyValues, instantiate, isInstance, setPropertyValues
-
-
-
-
方法详细资料
-
getParent
Object getParent(Object component)
Retrieve the current value of the parent property.- 参数:
component- The component instance from which to extract the parent property value.- 返回:
- The current value of the parent property.
-
setParent
void setParent(Object component, Object parent, SessionFactoryImplementor factory)
Set the value of the parent property.- 参数:
component- The component instance on which to set the parent.parent- The parent to be set on the component.factory- The current session factory.
-
hasParentProperty
boolean hasParentProperty()
Does the component managed by this tuplizer contain a parent property?- 返回:
- True if the component does contain a parent property; false otherwise.
-
isMethodOf
boolean isMethodOf(Method method)
Is the given method available via the managed component as a property getter?- 参数:
method- The method which to check against the managed component.- 返回:
- True if the managed component is available from the managed component; else false.
-
-