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

ch.inftec.ju.db.EmWork Maven / Gradle / Ivy

There is a newer version: 4.5.1-11
Show newest version
package ch.inftec.ju.db;

import javax.persistence.EntityManager;

/**
 * Interface that can be used to execute work requiring an EntityManager instance.
 * @author Martin
 *
 */
public interface EmWork {
	/**
	 * Callback function providing an EntityManager. Implementations make
	 * sure that a transaction is active.
	 * 

* If an exception is thrown during execution, the transaction will be rolled back. * @param em EntityManager instance */ void execute(EntityManager em); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy