#region Apache Notice /***************************************************************************** * $Revision: 450157 $ * $LastChangedDate$ * $LastChangedBy$ * * iBATIS.NET Data Mapper * Copyright (C) 2006/2005 - The Apache Software Foundation * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ********************************************************************************/ #endregion #region Using using System; using System.Collections.Specialized; using System.Data; using System.Xml.Serialization; using IBatisNet.DataMapper.DataExchange; #endregion namespace IBatisNet.DataMapper.Configuration.ResultMapping { /// /// This is a grouping of ResultMapping objects used to map results back to objects /// public interface IResultMap { /// /// The collection of constructor parameters. /// [XmlIgnore] ResultPropertyCollection Parameters { get; } /// /// The collection of ResultProperty. /// [XmlIgnore] ResultPropertyCollection Properties { get; } /// /// The GroupBy Properties. /// [XmlIgnore] ResultPropertyCollection GroupByProperties { get; } /// /// Identifier used to identify the resultMap amongst the others. /// /// GetProduct [XmlAttribute("id")] string Id { get; } /// /// The GroupBy Properties name. /// [XmlIgnore] StringCollection GroupByPropertyNames { get; } /// /// The output type class of the resultMap. /// [XmlIgnore] Type Class { get; } /// /// Sets the IDataExchange /// [XmlIgnore] IDataExchange DataExchange { set; } /// /// Gets or sets a value indicating whether this instance is initalized. /// /// /// true if this instance is initalized; otherwise, false. /// [XmlIgnore] bool IsInitalized { get; set; } /// /// Create an instance Of result. /// /// /// An array of values that matches the number, order and type /// of the parameters for this constructor. /// /// An object. object CreateInstanceOfResult(object[] parameters); /// /// Set the value of an object property. /// /// The object to set the property. /// The result property to use. /// The database value to set. void SetValueOfProperty(ref object target, ResultProperty property, object dataBaseValue); /// /// /// /// /// IResultMap ResolveSubMap(IDataReader dataReader); } }