| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Statements\Insert.cs | - | 100.0 % | 85.7 % | 91.7 % |
|
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.Exceptions; | |
32 | #endregion | |
33 | ||
34 | namespace IBatisNet.DataMapper.Configuration.Statements | |
35 | { | |
36 | /// <summary> | |
37 | /// Represent an insert statement. | |
38 | /// </summary> | |
39 | [Serializable] | |
40 | [XmlRoot("insert")] | |
41 | public class Insert : Statement | |
42 | { | |
43 | #region Fields | |
44 | [NonSerialized] | |
45 | private SelectKey _selectKey = null; | |
46 | [NonSerialized] | |
47 | private Generate _generate = null; | |
48 | #endregion | |
49 | ||
50 | #region Properties | |
51 | /// <summary> | |
52 | /// Extend statement attribute | |
53 | /// </summary> | |
54 | [XmlIgnoreAttribute] | |
55 | public override string ExtendSatement | |
56 | { | |
57 | 1870 | get { return string.Empty; } |
58 | 0 | set { } |
59 | } | |
60 | ||
61 | /// <summary> | |
62 | /// The selectKey statement used by an insert statement. | |
63 | /// </summary> | |
64 | [XmlElement("selectKey",typeof(SelectKey))] | |
65 | public SelectKey SelectKey | |
66 | { | |
67 | 6324 | get { return _selectKey; } |
68 | 850 | set { _selectKey = value; } |
69 | } | |
70 | ||
71 | /// <summary> | |
72 | /// The Generate tag used by a generated insert statement. | |
73 | /// (CRUD operation) | |
74 | /// </summary> | |
75 | [XmlElement("generate",typeof(Generate))] | |
76 | public Generate Generate | |
77 | { | |
78 | 2210 | get { return _generate; } |
79 | 170 | set { _generate = value; } |
80 | } | |
81 | #endregion | |
82 | ||
83 | #region Constructor (s) / Destructor | |
84 | /// <summary> | |
85 | /// Do not use direclty, only for serialization. | |
86 | /// </summary> | |
87 | 2040 | [Obsolete("This public constructor with no parameter is not really obsolete, but is reserved for serialization.", false)] |
88 | public Insert():base() | |
89 | { | |
90 | } | |
91 | #endregion | |
92 | ||
93 | ||
94 | } | |
95 | } | |
96 |
|