| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Commands\PreparedCommandFactory.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) 2005 - Gilles Bayon | |
10 | * | |
11 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
12 | * you may not use this file except in compliance with the License. | |
13 | * You may obtain a copy of the License at | |
14 | * | |
15 | * http://www.apache.org/licenses/LICENSE-2.0 | |
16 | * | |
17 | * Unless required by applicable law or agreed to in writing, software | |
18 | * distributed under the License is distributed on an "AS IS" BASIS, | |
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
20 | * See the License for the specific language governing permissions and | |
21 | * limitations under the License. | |
22 | * | |
23 | ********************************************************************************/ | |
24 | #endregion | |
25 | ||
26 | #region Using | |
27 | ||
28 | ||
29 | ||
30 | #endregion | |
31 | ||
32 | namespace IBatisNet.DataMapper.Commands | |
33 | { | |
34 | /// <summary> | |
35 | /// Summary description for PreparedCommandFactory. | |
36 | /// </summary> | |
37 | internal class PreparedCommandFactory | |
38 | { | |
39 | /// <summary> | |
40 | /// Get an IPreparedCommand. | |
41 | /// </summary> | |
42 | /// <returns></returns> | |
43 | 26520 | static public IPreparedCommand GetPreparedCommand(bool isEmbedStatementParams) |
44 | { | |
45 | 26520 | IPreparedCommand preparedCommand = null; |
46 | ||
47 | // if (isEmbedStatementParams) | |
48 | // { | |
49 | // preparedCommand = new EmbedParamsPreparedCommand(); | |
50 | // } | |
51 | // else | |
52 | // { | |
53 | 26520 | preparedCommand = new DefaultPreparedCommand(); |
54 | // } | |
55 | ||
56 | 26520 | return preparedCommand; |
57 | } | |
58 | ||
59 | } | |
60 | } | |
61 |
|