View Javadoc

1   /*
2    ORDI - Ontology Repository and Data Integration
3   
4    Copyright (c) 2004-2007, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package com.ontotext.ordi;
19  
20  public enum IsolationLevel {
21  
22      /**
23       * A constant indicating that transactions are not supported.
24       */
25      TRANSACTION_NONE,
26  
27      /**
28       * A constant indicating that dirty reads are prevented; non-repeatable
29       * reads and phantom reads can occur.
30       */
31      TRANSACTION_READ_COMMITTED,
32  
33      /**
34       * A constant indicating that dirty reads, non-repeatable reads and phantom
35       * reads can occur.
36       */
37      TRANSACTION_READ_UNCOMMITTED,
38  
39      /**
40       * A constant indicating that dirty reads and non-repeatable reads are
41       * prevented; phantom reads can occur.
42       */
43      TRANSACTION_REPEATABLE_READ,
44  
45      /**
46       * A constant indicating that dirty reads, non-repeatable reads and phantom
47       * reads are prevented.
48       */
49      TRANSACTION_SERIALIZABLE
50  }