All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.transactions.ITransactionCallable Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.transactions;

import com.mindoo.domino.jna.NotesDatabase;

/**
 * Callable interface for code running in a database transaction
 * 
 * @author Karsten Lehmann
 *
 * @param  result type
 */
public interface ITransactionCallable {

	/**
	 * Add your code here that should run atomically.
	 * 
	 * @param db database
	 * @return computation result or null
	 * @throws Exception in case of errors
	 */
	public T runInDbTransaction(NotesDatabase db) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy