| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Statements\PreparedStatement.cs | - | 100.0 % | 100.0 % | 100.0 % |
|
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 Using | |
28 | ||
29 | using System.Collections; | |
30 | ||
31 | #endregion | |
32 | ||
33 | namespace IBatisNet.DataMapper.Configuration.Statements | |
34 | { | |
35 | /// <summary> | |
36 | /// Construct the list of IDataParameters for the statement | |
37 | /// and prepare the sql | |
38 | /// </summary> | |
39 | public class PreparedStatement | |
40 | { | |
41 | #region Fields | |
42 | ||
43 | private string _preparedSsql = string.Empty; | |
44 | private ArrayList _dbParametersName = new ArrayList(); | |
45 | private ArrayList _dbParameters = new ArrayList(); | |
46 | ||
47 | #endregion | |
48 | ||
49 | #region Properties | |
50 | /// <summary> | |
51 | /// The list of IDataParameter name used by the PreparedSql. | |
52 | /// </summary> | |
53 | public ArrayList DbParametersName | |
54 | { | |
55 | 32506 | get { return _dbParametersName; } |
56 | } | |
57 | ||
58 | /// <summary> | |
59 | /// The list of IDataParameter to use for the PreparedSql. | |
60 | /// </summary> | |
61 | public ArrayList DbParameters | |
62 | { | |
63 | 32506 | get { return _dbParameters;} |
64 | } | |
65 | ||
66 | /// <summary> | |
67 | /// The prepared statement. | |
68 | /// </summary> | |
69 | public string PreparedSql | |
70 | { | |
71 | 314 | get { return _preparedSsql; } |
72 | 36659 | set {_preparedSsql = value;} |
73 | } | |
74 | ||
75 | #endregion | |
76 | } | |
77 | } | |
78 |
|