//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;
import java.util.Date;
/**
* The same as TransactionWithQuery except it does not throw Exception when executed.
*
* @param <P> The type or any supertype of the Prevalent System you intend to perform the transaction and query upon. <br>
* @param <R> The type of object which should be returned. <br>
* @see TransactionWithQuery
*/
public interface SureTransactionWithQuery<P, R> extends TransactionWithQuery<P, R> {
/**
* The same as TransactionWithQuery.executeAndQuery(P, Date) except it does not throw Exception when executed.
*
* @see TransactionWithQuery#executeAndQuery(Object, Date)
*/
public R executeAndQuery(P prevalentSystem, Date executionTime);
}