| |||||||||||||||||
Source File | Conditionals | Statements | Methods | TOTAL | |||||||||||||
Transaction\IsolationLevel.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 | #endregion | |
30 | ||
31 | namespace IBatisNet.Common.Transaction | |
32 | { | |
33 | /// <summary> | |
34 | /// Specifies the isolation level of a transaction. | |
35 | /// </summary> | |
36 | public enum IsolationLevel : int | |
37 | { | |
38 | /// <summary> | |
39 | /// Volatile data can be read but not modified, | |
40 | /// and no new data can be added during the transaction. | |
41 | /// </summary> | |
42 | Serializable = 0, | |
43 | /// <summary> | |
44 | /// Volatile data can be read but not modified during the transaction. | |
45 | /// New data may be added during the transaction. | |
46 | /// </summary> | |
47 | RepeatableRead = 1, | |
48 | /// <summary> | |
49 | /// Volatile data cannot be read during the transaction, but can be modified. | |
50 | /// </summary> | |
51 | ReadCommitted = 2, | |
52 | /// <summary> | |
53 | /// Volatile data can be read and modified during the transaction. | |
54 | /// </summary> | |
55 | ReadUncommitted = 3, | |
56 | /// <summary> | |
57 | /// Volatile data can be read but not modified, | |
58 | /// and no new data can be added during the transaction. | |
59 | /// </summary> | |
60 | Unspecified = 4 | |
61 | } | |
62 | } | |
63 |
|