public final class TransactionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends TransactionSupport> |
addTransactionSupport(TransactionSupport transactionSupport)
Adds transaction support to the page.
|
static Optional<String> |
getClassTxName(Class<?> type)
Determines the transaction name for the class.
|
static Optional<String> |
getTxName(Object object,
Method method)
Determines the transaction name of the method.
|
public static <T extends TransactionSupport> T addTransactionSupport(TransactionSupport transactionSupport)
TransactionT - transactionSupport - the transactionSupport element to be enhanced.public static Optional<String> getTxName(Object object, Method method)
Transaction otherwise
the empty optional is returned. The name is derived from the value of the Transaction annotation or from
the mehtod name. If the declaring class denotes a transaction itself, it's name prefixes the method transaction.method - the method for which the transaction name should be determinedpublic static Optional<String> getClassTxName(Class<?> type)
Transaction otherwise an
empty optional is returned. The name of the transaction is either the value of the annotation of the simple name
of the class itselftype - the type for which a transaction name should be determinedCopyright © 2016 DevCon5 GmbH. All rights reserved.