icomponenttuplizer.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 33 行

CS
33
字号
using NHibernate.Engine;

namespace NHibernate.Tuple.Component
{
	/// <summary> 
	/// Defines further responsibilities regarding tuplization based on
	/// a mapped components.
	/// </summary>
	/// <remarks>
	/// ComponentTuplizer implementations should have the following constructor signature:
	/// (org.hibernate.mapping.Component)
	/// </remarks>
	public interface IComponentTuplizer : ITuplizer
	{
		/// <summary> Retrieve the current value of the parent property. </summary>
		/// <param name="component">
		/// The component instance from which to extract the parent property value. 
		/// </param>
		/// <returns> The current value of the parent property. </returns>
		object GetParent(object component);

		/// <summary> Set the value of the parent property. </summary>
		/// <param name="component">The component instance on which to set the parent. </param>
		/// <param name="parent">The parent to be set on the component. </param>
		/// <param name="factory">The current session factory. </param>
		void SetParent(object component, object parent, ISessionFactoryImplementor factory);

		/// <summary> Does the component managed by this tuuplizer contain a parent property? </summary>
		/// <returns> True if the component does contain a parent property; false otherwise. </returns>
		bool HasParentProperty { get;}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?