Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

Lock.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2001-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: Lock.java,v 12.1 2005/06/16 20:23:01 bostic Exp $
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     /* package */
00023     static Lock wrap(final DbLock dblock) {
00024         return (dblock == null) ? null : new Lock(dblock);
00025     }
00026 
00027     /* package */
00028     DbLock unwrap() {
00029         return dbLock;
00030     }
00031 }

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2