Clover.NET coverage report - Coverage

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

File Stats: LOC: 161   Methods: 9
NCLOC: 56 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
MappedStatements\InsertMappedStatement.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 InsertMappedStatement.
38   /// </summary>
39   public class InsertMappedStatement : MappedStatement
40   {
41   /// <summary>
42   /// Constructor
43   /// </summary>
44   /// <param name="sqlMap">An SqlMap</param>
45   /// <param name="statement">An SQL statement</param>
46 2040 internal InsertMappedStatement( SqlMapper sqlMap, IStatement statement ): base(sqlMap, statement)
47   {
48   }
49  
50   #region ExecuteQueryForMap
51  
52   /// <summary>
53   ///
54   /// </summary>
55   /// <param name="session"></param>
56   /// <param name="parameterObject"></param>
57   /// <param name="keyProperty"></param>
58   /// <param name="valueProperty"></param>
59   /// <returns></returns>
60 0 public override IDictionary ExecuteQueryForMap( IDalSession session, object parameterObject, string keyProperty, string valueProperty )
61   {
62   throw new DataMapperException("Insert statements cannot be executed as a query for map.");
63   }
64  
65   #endregion
66  
67   #region ExecuteUpdate
68  
69   /// <summary>
70   ///
71   /// </summary>
72   /// <param name="session"></param>
73   /// <param name="parameterObject"></param>
74   /// <returns></returns>
75 0 public override int ExecuteUpdate(IDalSession session, object parameterObject )
76   {
77   throw new DataMapperException("Insert statements cannot be executed as a update query.");
78   }
79  
80   #endregion
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("Insert 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("Insert 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("Insert 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("Insert statements cannot be executed as a query for row delegate.");
131   }
132  
133   #region ExecuteForObject
134  
135   /// <summary>
136   ///
137   /// </summary>
138   /// <param name="session"></param>
139   /// <param name="parameterObject"></param>
140   /// <returns></returns>
141 0 public override object ExecuteQueryForObject( IDalSession session, object parameterObject )
142   {
143   throw new DataMapperException("Insert statements cannot be executed as a query for object.");
144   }
145  
146   /// <summary>
147   ///
148   /// </summary>
149   /// <param name="session"></param>
150   /// <param name="parameterObject"></param>
151   /// <param name="resultObject"></param>
152   /// <returns></returns>
153 0 public override object ExecuteQueryForObject( IDalSession session, object parameterObject, object resultObject )
154   {
155   throw new DataMapperException("Insert statements cannot be executed as a query for object.");
156   }
157  
158   #endregion
159   }
160   }
161