类 AbstractComponentTuplizer
- java.lang.Object
-
- org.hibernate.tuple.component.AbstractComponentTuplizer
-
- 所有已实现的接口:
Serializable,ComponentTuplizer,Tuplizer
public abstract class AbstractComponentTuplizer extends Object implements ComponentTuplizer
Support for tuplizers relating to components.- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Getter[]gettersprotected booleanhasCustomAccessorsprotected Instantiatorinstantiatorprotected intpropertySpanprotected Setter[]setters
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractComponentTuplizer(Component component)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract GetterbuildGetter(Component component, Property prop)protected abstract InstantiatorbuildInstantiator(Component component)protected abstract SetterbuildSetter(Component component, Property prop)GettergetGetter(int i)Retrieve the getter for the specified property.ObjectgetParent(Object component)Retrieve the current value of the parent property.ObjectgetPropertyValue(Object component, int i)Extract the value of a particular property from the given entity.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?Objectinstantiate()This method does not populate the component parentbooleanisInstance(Object object)Is the given object considered an instance of the the entity (accounting for entity-mode) managed by this tuplizer.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.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.tuple.Tuplizer
getMappedClass
-
-
-
-
字段详细资料
-
getters
protected final Getter[] getters
-
setters
protected final Setter[] setters
-
propertySpan
protected final int propertySpan
-
instantiator
protected final Instantiator instantiator
-
hasCustomAccessors
protected final boolean hasCustomAccessors
-
-
构造器详细资料
-
AbstractComponentTuplizer
protected AbstractComponentTuplizer(Component component)
-
-
方法详细资料
-
buildInstantiator
protected abstract Instantiator buildInstantiator(Component component)
-
getPropertyValue
public Object getPropertyValue(Object component, int i) throws HibernateException
从接口复制的说明:TuplizerExtract the value of a particular property from the given entity.- 指定者:
getPropertyValue在接口中Tuplizer- 参数:
component- The entity from which to extract the property value.i- The index of the property for which to extract the value.- 返回:
- The current value of the given property on the given entity.
- 抛出:
HibernateException
-
getPropertyValues
public Object[] getPropertyValues(Object component) throws HibernateException
从接口复制的说明:TuplizerExtract the current values contained on the given entity.- 指定者:
getPropertyValues在接口中Tuplizer- 参数:
component- The entity from which to extract values.- 返回:
- The current property values.
- 抛出:
HibernateException
-
isInstance
public boolean isInstance(Object object)
从接口复制的说明:TuplizerIs the given object considered an instance of the the entity (accounting for entity-mode) managed by this tuplizer.- 指定者:
isInstance在接口中Tuplizer- 参数:
object- The object to be checked.- 返回:
- True if the object is considered as an instance of this entity within the given mode.
-
setPropertyValues
public void setPropertyValues(Object component, Object[] values) throws HibernateException
从接口复制的说明:TuplizerInject the given values into the given entity.- 指定者:
setPropertyValues在接口中Tuplizer- 参数:
component- The entity.values- The values to be injected.- 抛出:
HibernateException
-
instantiate
public Object instantiate() throws HibernateException
This method does not populate the component parent- 指定者:
instantiate在接口中Tuplizer- 返回:
- The new, empty entity instance.
- 抛出:
HibernateException
-
getParent
public Object getParent(Object component)
从接口复制的说明:ComponentTuplizerRetrieve the current value of the parent property.- 指定者:
getParent在接口中ComponentTuplizer- 参数:
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- 返回:
- 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- 参数:
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- 参数:
component- The component instance on which to set the parent.parent- The parent to be set on the component.factory- The current session factory.
-
getGetter
public Getter getGetter(int i)
从接口复制的说明:TuplizerRetrieve the getter for the specified property.
-
setComponentClass
protected void setComponentClass(Component component)
-
-