| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Statements\IStatement.cs | - | - | - | - |
|
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.Collections; | |
30 | using System.Data; | |
31 | ||
32 | using IBatisNet.DataMapper.Configuration.ResultMapping; | |
33 | using IBatisNet.DataMapper.Configuration.ParameterMapping; | |
34 | using IBatisNet.DataMapper.Configuration.Cache; | |
35 | using IBatisNet.DataMapper.Configuration.Sql; | |
36 | #endregion | |
37 | ||
38 | namespace IBatisNet.DataMapper.Configuration.Statements | |
39 | { | |
40 | /// <summary> | |
41 | /// Summary description for ISql. | |
42 | /// </summary> | |
43 | public interface IStatement | |
44 | { | |
45 | ||
46 | #region Properties | |
47 | /// <summary> | |
48 | /// Identifier used to identify the statement amongst the others. | |
49 | /// </summary> | |
50 | string Id | |
51 | { | |
52 | get; | |
53 | set; | |
54 | } | |
55 | ||
56 | /// <summary> | |
57 | /// The type of the statement (text or procedure). | |
58 | /// </summary> | |
59 | CommandType CommandType | |
60 | { | |
61 | get; | |
62 | } | |
63 | ||
64 | /// <summary> | |
65 | /// Extend statement attribute | |
66 | /// </summary> | |
67 | string ExtendSatement | |
68 | { | |
69 | get; | |
70 | set; | |
71 | } | |
72 | ||
73 | /// <summary> | |
74 | /// The sql statement to execute. | |
75 | /// </summary> | |
76 | ISql Sql | |
77 | { | |
78 | get; | |
79 | set; | |
80 | } | |
81 | ||
82 | /// <summary> | |
83 | /// The ResultMap used by the statement. | |
84 | /// </summary> | |
85 | ResultMap ResultMap | |
86 | { | |
87 | get; | |
88 | } | |
89 | ||
90 | ||
91 | /// <summary> | |
92 | /// The parameterMap used by the statement. | |
93 | /// </summary> | |
94 | ParameterMap ParameterMap | |
95 | { | |
96 | get; | |
97 | set; | |
98 | } | |
99 | ||
100 | /// <summary> | |
101 | /// The CacheModel used by this statement. | |
102 | /// </summary> | |
103 | CacheModel CacheModel | |
104 | { | |
105 | get; | |
106 | set; | |
107 | } | |
108 | ||
109 | /// <summary> | |
110 | /// The CacheModel name to use. | |
111 | /// </summary> | |
112 | string CacheModelName | |
113 | { | |
114 | get; | |
115 | set; | |
116 | } | |
117 | ||
118 | /// <summary> | |
119 | /// The list class type to use for strongly typed collection. | |
120 | /// </summary> | |
121 | Type ListClass | |
122 | { | |
123 | get; | |
124 | } | |
125 | ||
126 | /// <summary> | |
127 | /// The result class type to used. | |
128 | /// </summary> | |
129 | Type ResultClass | |
130 | { | |
131 | get; | |
132 | } | |
133 | ||
134 | /// <summary> | |
135 | /// The parameter class type to used. | |
136 | /// </summary> | |
137 | Type ParameterClass | |
138 | { | |
139 | get; | |
140 | } | |
141 | #endregion | |
142 | ||
143 | #region Methods | |
144 | /// <summary> | |
145 | /// Create an instance of result class. | |
146 | /// </summary> | |
147 | /// <returns>An object.</returns> | |
148 | object CreateInstanceOfResultClass(); | |
149 | ||
150 | /// <summary> | |
151 | /// Create an instance of 'IList' class. | |
152 | /// </summary> | |
153 | /// <returns>An object which implment IList.</returns> | |
154 | IList CreateInstanceOfListClass(); | |
155 | #endregion | |
156 | ||
157 | } | |
158 | } | |
159 |
|