Examples of rollbackTransaction()


Examples of org.geotools.arcsde.session.ISession.rollbackTransaction()

        try {
            session.issue(new Command<Void>() {
                @Override
                public Void execute(ISession session, SeConnection connection) throws SeException,
                        IOException {
                    session.rollbackTransaction();
                    // and keep editing
                    session.startTransaction();
                    return null;
                }
            });
View Full Code Here

Examples of org.jboss.arquillian.transaction.spi.provider.TransactionProvider.rollbackTransaction()

                    TransactionalTest transactionalTest =
                            new TransactionalTestImpl(getTransactionManager(afterTest));

                    if (transactionMode == TransactionMode.ROLLBACK || isTestRequiresRollback()) {
                        // rollbacks the transaction
                        transactionProvider.rollbackTransaction(transactionalTest);
                    } else {
                        // commits the transaction
                        transactionProvider.commitTransaction(transactionalTest);
                    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.EditManager.rollbackTransaction()

        assertTrue(store.getTransaction() != Transaction.AUTO_COMMIT);
        //read keeps transaction open
        store.getFeatures();
        assertTrue(store.getTransaction() != Transaction.AUTO_COMMIT);
        //rollback stops
        manager.rollbackTransaction();
        assertTrue(store.getTransaction() == Transaction.AUTO_COMMIT);
        //remove starts again
        store.removeFeatures(Filter.INCLUDE);
        assertTrue(store.getTransaction() != Transaction.AUTO_COMMIT);
        //done
View Full Code Here

Examples of org.openbp.server.persistence.PersistenceContext.rollbackTransaction()

   * Rolls back the recent changes (if supported).
   */
  public void rollback()
  {
    PersistenceContext pc = getPersistenceContext();
    pc.rollbackTransaction();
    pc.release();
  }

  /**
   * Clears any this token context service might have.
View Full Code Here

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.rollbackTransaction()

            succeeded = true;
        } finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
        return subscriptions;
    }
View Full Code Here

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.rollbackTransaction()

            succeeded = true;
        } finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
        return item;
    }
View Full Code Here

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.rollbackTransaction()

            succeeded = true;
        } finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
    }

    public static OMElement loadConfigXML() throws Exception {
View Full Code Here

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.rollbackTransaction()

            throw new BillingException(e.getMessage(), e);
        }finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
    }

    public void execute(BillingEngineContext handlerContext) throws BillingException {
View Full Code Here

Examples of org.wso2.carbon.billing.core.jdbc.DataAccessObject.rollbackTransaction()

            throw new BillingException(msg, e);
        }finally {
            if (succeeded) {
                dataAccessObject.commitTransaction();
            } else {
                dataAccessObject.rollbackTransaction();
            }
        }
        return subscriptions;
    }
}
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.engine.DataService.rollbackTransaction()

      /* end transaction */
      dataService.endTransaction();
      /* no result in batch requests */
      return null;
    } catch (DataServiceFault e) {
      dataService.rollbackTransaction();
      throw e;
    } finally {
      /* release participants */
      releaseParticipantResources();
      clearParticipants();
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.