* @throws TransactionException if a rollback was made.
*/
public void deleteTableWithBeginCommit(final boolean callOnlyTransaction, final String dbName) throws SQLException,
NamingException, SystemException, NotSupportedException, HeuristicRollbackException, RollbackException,
HeuristicMixedException, TransactionException {
UserTransaction utx = TransactionHelper.getUserTransaction();
utx.begin();
try {
if (!callOnlyTransaction) {
TableManager tableManager = new TableManager(dbName);
tableManager.deleteTable(TABLE);
}
utx.commit();
} catch (Exception e) {
utx.rollback();
throw new TransactionException("Error during commit.", e);
}
}