//Prevayler(TM) - The Free-Software Prevalence Layer.
//Copyright (C) 2001-2003 Klaus Wuestefeld
//This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

package org.prevayler.implementation;

import java.util.Date;

import org.prevayler.*;


public class TransactionWithQueryExecuter implements Transaction {

	public static Object strip(Transaction possiblyWithQueryExecuter) {
		if (possiblyWithQueryExecuter instanceof TransactionWithQueryExecuter) {
			return ((TransactionWithQueryExecuter) possiblyWithQueryExecuter)._delegate;
		} else {
			return possiblyWithQueryExecuter;
		}
	}

    static final long serialVersionUID = 0L;

	private TransactionWithQuery _delegate;

	private transient Object _result;
	private transient Exception _exception;

    TransactionWithQueryExecuter(TransactionWithQuery transactionWithQuery) {
		_delegate = transactionWithQuery;
	}

	public final void executeOn(Object prevalentSystem, Date timestamp) {
		try {
			_result = _delegate.executeAndQuery(prevalentSystem, timestamp);
		} catch (RuntimeException rx) {
			_exception = rx;
			throw rx;   //This is necessary because of the rollback feature.
		} catch (Exception ex) {
			_exception = ex;
		}
	}

	Object result() throws Exception {
		if (_exception != null) throw _exception;
		return _result;
	}

}
@@ -362,23 +362,16 @@
 er.*;%0A%0A%0A
-public 
 class Tr
@@ -428,291 +428,8 @@
 %7B%0A%0A%09
-public static Object strip(Transaction possiblyWithQueryExecuter) %7B%0A%09%09if (possiblyWithQueryExecuter instanceof TransactionWithQueryExecuter) %7B%0A%09%09%09return ((TransactionWithQueryExecuter) possiblyWithQueryExecuter)._delegate;%0A%09%09%7D else %7B%0A%09%09%09return possiblyWithQueryExecuter;%0A%09%09%7D%0A%09%7D%0A%0A    
 stat

Remove unused method.