01: /*-
02: * See the file LICENSE for redistribution information.
03: *
04: * Copyright (c) 2002,2008 Oracle. All rights reserved.
05: *
06: * $Id: NullTransactionRunner.java,v 1.16.2.2 2008/01/07 15:14:24 cwl Exp $
07: */
08:
09: package com.sleepycat.collections.test;
10:
11: import com.sleepycat.collections.TransactionRunner;
12: import com.sleepycat.collections.TransactionWorker;
13: import com.sleepycat.je.Environment;
14: import com.sleepycat.util.ExceptionUnwrapper;
15:
16: class NullTransactionRunner extends TransactionRunner {
17:
18: NullTransactionRunner(Environment env) {
19:
20: super (env);
21: }
22:
23: public void run(TransactionWorker worker) throws Exception {
24:
25: try {
26: worker.doWork();
27: } catch (Exception e) {
28: throw ExceptionUnwrapper.unwrap(e);
29: }
30: }
31: }
|