Clover.NET coverage report - Coverage

Coverage timestamp: Friday, May 20, 2005 9:17:00 PM

File Stats: LOC: 162   Methods: 9
NCLOC: 55 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
MappedStatements\UpdateMappedStatement.cs - 0.0 % 11.1 % 5.9 %
coverage coverage
1  
2   #region Apache Notice
3   /*****************************************************************************
4   * $Header: $
5   * $Revision: $
6   * $Date: $
7   *
8   * iBATIS.NET Data Mapper
9   * Copyright (C) 2004 - Gilles Bayon
10   *
11   *
12   * Licensed under the Apache License, Version 2.0 (the "License");
13   * you may not use this file except in compliance with the License.
14   * You may obtain a copy of the License at
15   *
16   * http://www.apache.org/licenses/LICENSE-2.0
17   *
18   * Unless required by applicable law or agreed to in writing, software
19   * distributed under the License is distributed on an "AS IS" BASIS,
20   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21   * See the License for the specific language governing permissions and
22   * limitations under the License.
23   *
24   ********************************************************************************/
25   #endregion
26  
27   using System;
28   using System.Collections;
29  
30   using IBatisNet.DataMapper.Exceptions;
31   using IBatisNet.Common;
32   using IBatisNet.DataMapper.Configuration.Statements;
33  
34   namespace IBatisNet.DataMapper.MappedStatements
35   {
36   /// <summary>
37   /// Summary description for UpdateMappedStatement.
38   /// </summary>
39   public class UpdateMappedStatement : MappedStatement
40   {
41   /// <summary>
42   /// Constructor
43   /// </summary>
44   /// <param name="sqlMap">An SqlMap</param>
45   /// <param name="statement">An SQL statement</param>
46 850 internal UpdateMappedStatement( SqlMapper sqlMap, IStatement statement ): base(sqlMap, statement)
47   { }
48  
49   #region ExecuteQueryForMap
50  
51   /// <summary>
52   ///
53   /// </summary>
54   /// <param name="session"></param>
55   /// <param name="parameterObject"></param>
56   /// <param name="keyProperty"></param>
57   /// <param name="valueProperty"></param>
58   /// <returns></returns>
59 0 public override IDictionary ExecuteQueryForMap( IDalSession session, object parameterObject, string keyProperty, string valueProperty )
60   {
61   throw new DataMapperException("Update statements cannot be executed as a query for map.");
62   }
63  
64   #endregion
65  
66   #region ExecuteInsert
67  
68   /// <summary>
69   ///
70   /// </summary>
71   /// <param name="session"></param>
72   /// <param name="parameterObject"></param>
73   /// <returns></returns>
74 0 public override object ExecuteInsert(IDalSession session, object parameterObject )
75   {
76   throw new DataMapperException("Update statements cannot be executed as a query insert.");
77   }
78  
79   #endregion
80  
81  
82   #region ExecuteQueryForList
83  
84   /// <summary>
85   ///
86   /// </summary>
87   /// <param name="session"></param>
88   /// <param name="parameterObject"></param>
89   /// <param name="resultObject"></param>
90 0 public override void ExecuteQueryForList(IDalSession session, object parameterObject, IList resultObject )
91   {
92   throw new DataMapperException("Update statements cannot be executed as a query for list.");
93   }
94  
95   /// <summary>
96   ///
97   /// </summary>
98   /// <param name="session"></param>
99   /// <param name="parameterObject"></param>
100   /// <param name="skipResults"></param>
101   /// <param name="maxResults"></param>
102   /// <returns></returns>
103 0 public override IList ExecuteQueryForList( IDalSession session, object parameterObject, int skipResults, int maxResults )
104   {
105   throw new DataMapperException("Update statements cannot be executed as a query for list.");
106   }
107  
108   /// <summary>
109   ///
110   /// </summary>
111   /// <param name="session"></param>
112   /// <param name="parameterObject"></param>
113   /// <returns></returns>
114 0 public override IList ExecuteQueryForList( IDalSession session, object parameterObject )
115   {
116   throw new DataMapperException("Update statements cannot be executed as a query for list.");
117   }
118  
119   #endregion
120  
121   /// <summary>
122   ///
123   /// </summary>
124   /// <param name="session"></param>
125   /// <param name="parameterObject"></param>
126   /// <param name="rowDelegate"></param>
127   /// <returns></returns>
128 0 public override IList ExecuteQueryForRowDelegate( IDalSession session, object parameterObject, SqlMapper.RowDelegate rowDelegate )
129   {
130   throw new DataMapperException("Update statements cannot be executed as a query for row delegate.");
131   }
132  
133  
134   #region ExecuteForObject
135  
136   /// <summary>
137   ///
138   /// </summary>
139   /// <param name="session"></param>
140   /// <param name="parameterObject"></param>
141   /// <returns></returns>
142 0 public override object ExecuteQueryForObject( IDalSession session, object parameterObject )
143   {
144   throw new DataMapperException("Update statements cannot be executed as a query for object.");
145   }
146  
147   /// <summary>
148   ///
149   /// </summary>
150   /// <param name="session"></param>
151   /// <param name="parameterObject"></param>
152   /// <param name="resultObject"></param>
153   /// <returns></returns>
154 0 public override object ExecuteQueryForObject( IDalSession session, object parameterObject, object resultObject )
155   {
156   throw new DataMapperException("Update statements cannot be executed as a query for object.");
157   }
158  
159   #endregion
160   }
161   }
162