00001
00002
00003
00004
00005
00006
00007
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 }