net.java.trueupdate.manager.spec.tx
Class Transactions
java.lang.Object
net.java.trueupdate.manager.spec.tx.Transactions
public class Transactions
- extends Object
Provides functions for Transactions.
- Author:
- Christian Schlichtherle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
execute
public static void execute(Transaction tx)
throws Exception
- Executes the given transaction.
- Throws:
IllegalStateException - if this method is called recursively.
Exception
time
public static Transaction time(Transaction tx,
String message,
Transactions.LoggerConfig config)
- Wraps the given transaction in another transaction which logs the
duration of each transaction method using the given configuration.
- Returns:
- the logging transaction.
Copyright © 2013 Schlichtherle IT Services. All rights reserved.