| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Configuration\Sql\Dynamic\SqlText.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 | using System; | |
29 | ||
30 | using IBatisNet.Common; | |
31 | using IBatisNet.DataMapper.Configuration.Statements; | |
32 | using IBatisNet.DataMapper.Configuration.ParameterMapping; | |
33 | #endregion | |
34 | ||
35 | namespace IBatisNet.DataMapper.Configuration.Sql.Dynamic | |
36 | { | |
37 | /// <summary> | |
38 | /// Summary description for SqlText. | |
39 | /// </summary> | |
40 | public class SqlText : ISqlChild | |
41 | { | |
42 | ||
43 | #region Fields | |
44 | ||
45 | private string _text = string.Empty; | |
46 | private bool _isWhiteSpace = false; | |
47 | private ParameterProperty[] _parameters = null; | |
48 | ||
49 | #endregion | |
50 | ||
51 | #region Properties | |
52 | /// <summary> | |
53 | /// | |
54 | /// </summary> | |
55 | public string Text | |
56 | { | |
57 | 17659 | get |
58 | { | |
59 | 17659 | return _text; |
60 | } | |
61 | 51194 | set |
62 | { | |
63 | 51194 | _text = value; |
64 | 51194 | _isWhiteSpace = (_text.Trim().Length == 0); |
65 | } | |
66 | } | |
67 | ||
68 | /// <summary> | |
69 | /// | |
70 | /// </summary> | |
71 | public bool IsWhiteSpace | |
72 | { | |
73 | 125 | get |
74 | { | |
75 | 125 | return _isWhiteSpace; |
76 | } | |
77 | } | |
78 | ||
79 | /// <summary> | |
80 | /// | |
81 | /// </summary> | |
82 | public ParameterProperty[] Parameters | |
83 | { | |
84 | 72909 | get |
85 | { | |
86 | 72909 | return _parameters; |
87 | } | |
88 | 49834 | set |
89 | { | |
90 | 49834 | _parameters = value; |
91 | } | |
92 | } | |
93 | #endregion | |
94 | ||
95 | } | |
96 | } | |
97 |
|