01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: LockMode.java,v 1.20.2.2 2008/01/07 15:14:08 cwl Exp $
07: */
08:
09: 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 lockModeName;
17:
18: private LockMode(String 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 = new LockMode(
33: "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 = new LockMode(
47: "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 toString() {
56: return "LockMode." + lockModeName;
57: }
58: }
|