public class LauncherTransactionHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
UT_NAMES
Various binding names for the UserTransaction.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkNStartTransaction()
Start transaction.
|
static boolean |
checkNStartTransactionWithStatus()
Start transaction.
|
static void |
commitOrRollbackTransaction()
Commits or rolls back the User Transaction depending on the transaction
status.
|
static UserTransaction |
lookupUserTransaction()
Looks up the User Transaction in JNDI.
|
static boolean |
rollbackTransaction()
Rollback transaction.
|
static boolean |
setTransactionRollbackOnly()
Sets the current User Transaction as rollback only.
|
public static final String[] UT_NAMES
public static UserTransaction lookupUserTransaction() throws NamingException
NamingException - if not foundpublic static void checkNStartTransaction()
public static boolean checkNStartTransactionWithStatus()
public static void commitOrRollbackTransaction()
public static boolean setTransactionRollbackOnly()
true if the transaction was successfully marked rollback
only, false otherwisepublic static boolean rollbackTransaction()
true if the transaction was successfully rollback, false otherwiseCopyright © 2020. All rights reserved.