Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / sdbc / TransactionIsolation.idl
blobe69bf06b8e259332bb8f2308820e16aa90012687
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_sdbc_TransactionIsolation_idl__
29 #define __com_sun_star_sdbc_TransactionIsolation_idl__
31 module com { module sun { module star { module sdbc {
34 /** distinguishes different possible transaction isolation levels.
36 published constants TransactionIsolation
39 /** indicates that transactions are not supported.
41 const long NONE = 0;
43 /** Dirty reads, non-repeatable reads and phantom reads can occur.
44 This level allows a row changed by one transaction to be read
45 by another transaction before any changes in that row have been
46 committed (a "dirty read"). If any of the changes are rolled back,
47 the second transaction will have retrieved an invalid row.
49 const long READ_UNCOMMITTED = 1;
51 /** Dirty reads are prevented; non-repeatable reads and phantom
52 reads can occur. This level only prohibits a transaction
53 from reading a row with uncommitted changes in it.
55 const long READ_COMMITTED = 2;
57 /** Dirty reads and non-repeatable reads are prevented; phantom
58 reads can occur. This level prohibits a transaction from
59 reading a row with uncommitted changes in it, and it also
60 prohibits the situation where one transaction reads a row,
61 a second transaction alters the row, and the first transaction
62 rereads the row, getting different values the second time
63 (a "non-repeatable read").
65 const long REPEATABLE_READ = 4;
67 /** Dirty reads, non-repeatable reads and phantom reads are prevented.
68 This level includes the prohibitions in
69 <code>REPEATABLE_READ</code>
70 and further prohibits the
71 situation where one transaction reads all rows that satisfy
72 a WHERE condition, a second transaction inserts a row that
73 satisfies that WHERE condition, and the first transaction
74 rereads for the same condition, retrieving the additional
75 "phantom" row in the second read.
77 const long SERIALIZABLE = 8;
80 //=============================================================================
82 }; }; }; };
84 /*===========================================================================
85 ===========================================================================*/
86 #endif
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */