00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 package com.sleepycat.db;
00011
00012 import com.sleepycat.db.internal.DbLock;
00013
00014 public final class Lock {
00015 private DbLock dbLock;
00016
00017 private Lock(final DbLock dblock) {
00018 this.dbLock = dbLock;
00019 dbLock.wrapper = this;
00020 }
00021
00022
00023 static Lock wrap(final DbLock dblock) {
00024 return (dblock == null) ? null : new Lock(dblock);
00025 }
00026
00027
00028 DbLock unwrap() {
00029 return dbLock;
00030 }
00031 }