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

NullTransactionRunner.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2002-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: NullTransactionRunner.java,v 12.1 2005/01/31 19:27:35 mark Exp $
00008  */
00009 
00010 package com.sleepycat.collections.test;
00011 
00012 import com.sleepycat.collections.TransactionRunner;
00013 import com.sleepycat.collections.TransactionWorker;
00014 import com.sleepycat.db.Environment;
00015 import com.sleepycat.util.ExceptionUnwrapper;
00016 
00017 class NullTransactionRunner extends TransactionRunner {
00018 
00019     NullTransactionRunner(Environment env) {
00020 
00021         super(env);
00022     }
00023 
00024     public void run(TransactionWorker worker)
00025         throws Exception {
00026 
00027         try {
00028             worker.doWork();
00029         } catch (Exception e) {
00030             throw ExceptionUnwrapper.unwrap(e);
00031         }
00032     }
00033 }

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