nulltransactionrunner.java

来自「嵌入式数据库Berkeley DB-4.5.20源代码」· Java 代码 · 共 34 行

JAVA
34
字号
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002-2006 *	Oracle Corporation.  All rights reserved. * * $Id: NullTransactionRunner.java,v 12.3 2006/08/24 14:46:46 bostic Exp $ */package com.sleepycat.collections.test;import com.sleepycat.collections.TransactionRunner;import com.sleepycat.collections.TransactionWorker;import com.sleepycat.db.Environment;import com.sleepycat.util.ExceptionUnwrapper;class NullTransactionRunner extends TransactionRunner {    NullTransactionRunner(Environment env) {        super(env);    }    public void run(TransactionWorker worker)        throws Exception {        try {            worker.doWork();        } catch (Exception e) {            throw ExceptionUnwrapper.unwrap(e);        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?