1 8 9 package com.sleepycat.je; 10 11 15 public class LockMode { 16 private String lockModeName; 17 18 private LockMode(String lockModeName) { 19 this.lockModeName = lockModeName; 20 } 21 22 26 public static final LockMode DEFAULT = new LockMode("DEFAULT"); 27 28 32 public static final LockMode READ_UNCOMMITTED = 33 new LockMode("READ_UNCOMMITTED"); 34 35 40 public static final LockMode DIRTY_READ = READ_UNCOMMITTED; 41 42 46 public static final LockMode READ_COMMITTED = 47 new LockMode("READ_COMMITTED"); 48 49 53 public static final LockMode RMW = new LockMode("RMW"); 54 55 public String toString() { 56 return "LockMode." + lockModeName; 57 } 58 } 59 | Popular Tags |