
com.mindoo.domino.jna.transactions.ITransactionCallable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
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