KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > LockMode


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: LockMode.java,v 1.20 2006/10/30 21:14:12 bostic Exp $
7  */

8
9 package com.sleepycat.je;
10
11 /**
12  * Javadoc for this public class is generated
13  * via the doc templates in the doc_src directory.
14  */

15 public class LockMode {
16     private String JavaDoc lockModeName;
17
18     private LockMode(String JavaDoc lockModeName) {
19     this.lockModeName = lockModeName;
20     }
21
22     /**
23      * Javadoc for this public method is generated via
24      * the doc templates in the doc_src directory.
25      */

26     public static final LockMode DEFAULT = new LockMode("DEFAULT");
27
28     /**
29      * Javadoc for this public method is generated via
30      * the doc templates in the doc_src directory.
31      */

32     public static final LockMode READ_UNCOMMITTED =
33         new LockMode("READ_UNCOMMITTED");
34
35     /**
36      * Javadoc for this public method is generated via
37      * the doc templates in the doc_src directory.
38      * @deprecated
39      */

40     public static final LockMode DIRTY_READ = READ_UNCOMMITTED;
41
42     /**
43      * Javadoc for this public method is generated via
44      * the doc templates in the doc_src directory.
45      */

46     public static final LockMode READ_COMMITTED =
47         new LockMode("READ_COMMITTED");
48
49     /**
50      * Javadoc for this public method is generated via
51      * the doc templates in the doc_src directory.
52      */

53     public static final LockMode RMW = new LockMode("RMW");
54
55     public String JavaDoc toString() {
56     return "LockMode." + lockModeName;
57     }
58 }
59
Popular Tags