Clover.NET coverage report - Coverage

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

File Stats: LOC: 81   Methods: 3
NCLOC: 27 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
MappedStatements\SelectMappedStatement.cs - 0.0 % 33.3 % 20.0 %
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 SelectMappedStatement.
38   /// </summary>
39   public class SelectMappedStatement : MappedStatement
40   {
41   /// <summary>
42   /// Constructor
43   /// </summary>
44   /// <param name="sqlMap">An SqlMap</param>
45   /// <param name="statement">An SQL statement</param>
46 9350 internal SelectMappedStatement( SqlMapper sqlMap, IStatement statement ): base(sqlMap, statement)
47   { }
48  
49  
50   #region ExecuteInsert
51  
52   /// <summary>
53   ///
54   /// </summary>
55   /// <param name="session"></param>
56   /// <param name="parameterObject"></param>
57   /// <returns></returns>
58 0 public override object ExecuteInsert(IDalSession session, object parameterObject )
59   {
60   throw new DataMapperException("Update statements cannot be executed as a query insert.");
61   }
62  
63   #endregion
64  
65   #region ExecuteUpdate
66  
67   /// <summary>
68   ///
69   /// </summary>
70   /// <param name="session"></param>
71   /// <param name="parameterObject"></param>
72   /// <returns></returns>
73 0 public override int ExecuteUpdate(IDalSession session, object parameterObject )
74   {
75   throw new DataMapperException("Insert statements cannot be executed as a update query.");
76   }
77  
78   #endregion
79   }
80   }
81