Clover.NET coverage report - Coverage

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

File Stats: LOC: 108   Methods: 8
NCLOC: 53 Classes: 1
 
Source File Conditionals Statements Methods TOTAL
Configuration\Statements\SelectKey.cs - 66.7 % 62.5 % 64.3 %
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   #region Imports
28   using System;
29   using System.Xml.Serialization;
30  
31   using IBatisNet.DataMapper.Configuration.Alias;
32   using IBatisNet.DataMapper.Exceptions;
33   #endregion
34  
35   namespace IBatisNet.DataMapper.Configuration.Statements
36   {
37   /// <summary>
38   /// Represent a SelectKey tag element.
39   /// </summary>
40   [Serializable]
41   [XmlRoot("selectKey")]
42   public class SelectKey : Statement
43   {
44  
45   #region Fields
46  
47   [NonSerialized]
48   private SelectKeyType _selectKeyType = SelectKeyType.post;
49   [NonSerialized]
50   private string _property = string.Empty;
51  
52   #endregion
53  
54   #region Properties
55   /// <summary>
56   /// Extend statement attribute
57   /// </summary>
58 0 [XmlIgnoreAttribute]
59   public override string ExtendSatement
60   {
61   get { return string.Empty; }
62   set { }
63   }
64  
65   /// <summary>
66   /// The property name object to fill with the key.
67   /// </summary>
68   [XmlAttribute("property")]
69   public string PropertyName
70   {
71 10 get { return _property; }
72 850 set { _property = value; }
73   }
74  
75   /// <summary>
76   /// The type of the selectKey tag : 'Pre' or 'Post'
77   /// </summary>
78   [XmlAttribute("type")]
79   public SelectKeyType SelectKeyType
80   {
81 0 get { return _selectKeyType; }
82 850 set { _selectKeyType = value; }
83   }
84  
85  
86   /// <summary>
87   /// True if it is a post-generated key.
88   /// </summary>
89   [XmlIgnoreAttribute]
90   public bool isAfter
91   {
92 20 get { return _selectKeyType == SelectKeyType.post; }
93   }
94   #endregion
95  
96   #region Constructor (s) / Destructor
97   /// <summary>
98   /// Do not use direclty, only for serialization.
99   /// </summary>
100 850 [Obsolete("This public constructor with no parameter is not really obsolete, but is reserved for serialization.", false)]
101   public SelectKey():base()
102   {
103   }
104   #endregion
105  
106   }
107   }
108