com.talk2object.plum.repository.biz.TransactionExecutor Maven / Gradle / Ivy
The newest version!
package com.talk2object.plum.repository.biz;
import java.util.concurrent.Callable;
/**
* a Spring AOP transaction wrapper.
*
* @author jack
*
*/
public class TransactionExecutor {
public Object execute(Callable callable) {
try {
return callable.call();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy