| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
MappedStatements\DeleteMappedStatement.cs | - | 0.0 % | 11.1 % | 5.9 % |
|
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 DeleteMappedStatement. | |
38 | /// </summary> | |
39 | public class DeleteMappedStatement : MappedStatement | |
40 | { | |
41 | /// <summary> | |
42 | /// Constructor | |
43 | /// </summary> | |
44 | /// <param name="sqlMap">An SqlMap</param> | |
45 | /// <param name="statement">An SQL statement</param> | |
46 | 680 | internal DeleteMappedStatement( 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("Delete 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("Delete statements cannot be executed as a query insert."); | |
77 | } | |
78 | ||
79 | #endregion | |
80 | ||
81 | #region ExecuteQueryForList | |
82 | ||
83 | /// <summary> | |
84 | /// | |
85 | /// </summary> | |
86 | /// <param name="session"></param> | |
87 | /// <param name="parameterObject"></param> | |
88 | /// <param name="resultObject"></param> | |
89 | 0 | public override void ExecuteQueryForList(IDalSession session, object parameterObject, IList resultObject ) |
90 | { | |
91 | throw new DataMapperException("Delete statements cannot be executed as a query for list."); | |
92 | } | |
93 | ||
94 | /// <summary> | |
95 | /// | |
96 | /// </summary> | |
97 | /// <param name="session"></param> | |
98 | /// <param name="parameterObject"></param> | |
99 | /// <param name="skipResults"></param> | |
100 | /// <param name="maxResults"></param> | |
101 | /// <returns></returns> | |
102 | 0 | public override IList ExecuteQueryForList( IDalSession session, object parameterObject, int skipResults, int maxResults ) |
103 | { | |
104 | throw new DataMapperException("Delete statements cannot be executed as a query for list."); | |
105 | } | |
106 | ||
107 | /// <summary> | |
108 | /// | |
109 | /// </summary> | |
110 | /// <param name="session"></param> | |
111 | /// <param name="parameterObject"></param> | |
112 | /// <returns></returns> | |
113 | 0 | public override IList ExecuteQueryForList( IDalSession session, object parameterObject ) |
114 | { | |
115 | throw new DataMapperException("Delete statements cannot be executed as a query for list."); | |
116 | } | |
117 | ||
118 | #endregion | |
119 | ||
120 | /// <summary> | |
121 | /// | |
122 | /// </summary> | |
123 | /// <param name="session"></param> | |
124 | /// <param name="parameterObject"></param> | |
125 | /// <param name="rowDelegate"></param> | |
126 | /// <returns></returns> | |
127 | 0 | public override IList ExecuteQueryForRowDelegate( IDalSession session, object parameterObject, SqlMapper.RowDelegate rowDelegate ) |
128 | { | |
129 | throw new DataMapperException("Delete statements cannot be executed as a query for row delegate."); | |
130 | } | |
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("Delete 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("Delete statements cannot be executed as a query for object."); | |
156 | } | |
157 | ||
158 | #endregion | |
159 | } | |
160 | } | |
161 |
|