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

io.ebean.TransactionCallback Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean;

/**
 * Provides a callback that can be registered with a Transaction.
 * 

* The callback methods are called just prior to and after the transaction performs a commit or rollback. *

* A typical use of TransactionCallback would be to clean up non-transactional resources like files. For example, * when processing files on postCommit/postRollback clean up the associated files. As another example when * on postCommit of a delete remove associated resources from the file system or remote service. */ public interface TransactionCallback { /** * Perform processing just prior to the transaction commit. */ void preCommit(); /** * Perform processing just after the transaction commit. */ void postCommit(); /** * Perform processing just prior to the transaction rollback. */ void preRollback(); /** * Perform processing just after the transaction rollback. */ void postRollback(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy