| |||||||||||||||||
| Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
| Model\IObjectHandlerMethodCaller.cs | - | - | - | - |
|
||||||||||||
| 1 | #region Copyright | |
| 2 | /* | |
| 3 | ShowX. Maps business objects into presentation layer. | |
| 4 | Copyright (C) 2005 Jesus Diaz. | |
| 5 | ||
| 6 | This library is free software; you can redistribute it and/or | |
| 7 | modify it under the terms of the GNU Lesser General Public | |
| 8 | License as published by the Free Software Foundation; either | |
| 9 | version 2.1 of the License, or (at your option) any later version. | |
| 10 | ||
| 11 | This library is distributed in the hope that it will be useful, | |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | Lesser General Public License for more details. | |
| 15 | ||
| 16 | You should have received a copy of the GNU Lesser General Public | |
| 17 | License along with this library; if not, write to the Free Software | |
| 18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
| 19 | ||
| 20 | For project details see: http://showx.sourceforge.net | |
| 21 | */ | |
| 22 | #endregion | |
| 23 | ||
| 24 | using System; | |
| 25 | using System.Collections; | |
| 26 | ||
| 27 | namespace ShowX.Model | |
| 28 | { | |
| 29 | /// <summary> | |
| 30 | /// IObjectHandlerProxy presents a common interface to objects that implements | |
| 31 | /// access to IObjectHandler methods, accordingly to the defined mapping. | |
| 32 | /// </summary> | |
| 33 | public interface IObjectHandlerMethodCaller | |
| 34 | { | |
| 35 | /// <summary> | |
| 36 | /// Invoque the method GetUpdateX, for Type t, by using its | |
| 37 | /// Object Handler (OH) class. | |
| 38 | /// </summary> | |
| 39 | /// <param name="t">Type to invoque method GetUpdateX, by using its OH. | |
| 40 | /// </param> | |
| 41 | /// <param name="context">Context in which occurs the operation (supplied by | |
| 42 | /// user via control properties)</param> | |
| 43 | /// <param name="values">Values to update an instance of t. The values | |
| 44 | /// array should compliant with the expected parameter of the method. | |
| 45 | /// </param> | |
| 46 | void InvokeMethodGetUpdateX(Type t, object context, object[] values); | |
| 47 | /// <summary> | |
| 48 | /// Invoque the method GetXByID, for Type t, by using its | |
| 49 | /// Object Handler (OH) class. | |
| 50 | /// </summary> | |
| 51 | /// <param name="t">Type to invoque method GetXByID, by using its OH. | |
| 52 | /// </param> | |
| 53 | /// <param name="context">Context in which occurs the operation (supplied by | |
| 54 | /// user via control properties)</param> | |
| 55 | /// <param name="xId">Unique identifier of the instance we want to get.</param> | |
| 56 | /// <returns>An instance of type t.</returns> | |
| 57 | object InvokeMethodGetXByID(Type t, object context, int xId); | |
| 58 | /// <summary> | |
| 59 | /// Invoque the method DelX, for Type t,by using its | |
| 60 | /// Object Handler (OH) class. | |
| 61 | /// </summary> | |
| 62 | /// <param name="t">Type to invoque DelX, by using its OH. | |
| 63 | /// </param> | |
| 64 | /// <param name="context">Context in wich occurs the operation.</param> | |
| 65 | /// <param name="xId">Unique identifier of the instance we want to delete. | |
| 66 | /// </param> | |
| 67 | void InvokeMethodDelX(Type t, object context, int xId); | |
| 68 | /// <summary> | |
| 69 | /// Invoque the method NewX, for Type t, by using its Object Handler (OH) | |
| 70 | /// class. | |
| 71 | /// </summary> | |
| 72 | /// <param name="t">Type to invoque method NewX, by using its OH. | |
| 73 | /// </param> | |
| 74 | /// <returns>The newly created instance of type t.</returns> | |
| 75 | object InvokeMethodNewX(Type t); | |
| 76 | /// <summary> | |
| 77 | /// Invoque the method AddX, for Type t, by using its Object Handler (OH) | |
| 78 | /// class. | |
| 79 | /// </summary> | |
| 80 | /// <param name="t">Type to invoque method AddX, by using its OH. | |
| 81 | /// </param> | |
| 82 | /// <param name="context">Context in which occurs the operation (supplied by | |
| 83 | /// user via control properties)</param> | |
| 84 | /// <param name="values">Values to add an instance of t. The values | |
| 85 | /// array should compliant with the expected parameter of the method | |
| 86 | /// AddX for the OH defined for this class.</param> | |
| 87 | object InvokeMethodAddX(Type t, object context, object[] values); | |
| 88 | /// <summary> | |
| 89 | /// Invoque the method GetAllX, for Type t by using its Object Handler (OH) | |
| 90 | /// class. | |
| 91 | /// </summary> | |
| 92 | /// <param name="t">Type to invoque method theGetAllX, by using its OH. | |
| 93 | /// </param> | |
| 94 | /// <param name="context">Context in which occurs the operation (supplied by | |
| 95 | /// user via control properties)</param> | |
| 96 | /// <returns>An ArrayList of instances of t.</returns> | |
| 97 | ArrayList InvokeMethodGetAllX(Type t, object context); | |
| 98 | } | |
| 99 | } | |
| 100 |
|
||||||||