Package org.fcrepo.kernel.api
Class TransactionUtils
- java.lang.Object
-
- org.fcrepo.kernel.api.TransactionUtils
-
public class TransactionUtils extends Object
A utility class for working with common transaction related operations.- Author:
- dbernstein
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringopenTxId(Transaction transaction)Returns the transaction ID if the transaction is both non-null and uncommitted.
-
-
-
Method Detail
-
openTxId
public static String openTxId(Transaction transaction)
Returns the transaction ID if the transaction is both non-null and uncommitted. Otherwise it returns null.- Parameters:
transaction- The transaction- Returns:
- The transaction ID or null
-
-