Examples of rollback()


Examples of org.exoplatform.services.jcr.impl.clean.rdbms.DBCleanerTool.rollback()

            // clean and rollback first
            repositoryDBCleaner.clean();

            conn.rollback();

            repositoryDBCleaner.rollback();

            conn.commit();

            checkConent(repositoryName);
View Full Code Here

Examples of org.exoplatform.services.jcr.storage.WorkspaceStorageConnection.rollback()

                  logComment("Lock has been removed form ITEM table. Node UUID: " + nodeId);
               }
               catch (RepositoryException e)
               {
                  conn.rollback();
                  throw e;
               }
            }
         }
      }
View Full Code Here

Examples of org.freeplane.core.undo.IUndoHandler.rollback()

  @Override
  public void rollback() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.rollback();
  }

  /**
   *
   */
 
View Full Code Here

Examples of org.freeplane.features.mode.ModeController.rollback()

      if(JOptionPane.OK_OPTION == confirmed){
        modeController.commit();
        modeController.getMapController().nodeChanged(controller.getSelection().getSelected(),NodeModel.UNKNOWN_PROPERTY,null,null);
      }
      else{
        modeController.rollback();

      }
    }
    catch(RuntimeException ex){
      ex.printStackTrace();
View Full Code Here

Examples of org.fto.jthink.jdbc.JDBCTransaction.rollback()

      System.out.println(rs[0]+","+rs[1]);
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{
      /* 关闭事务 */
      transaction.close();
    }
View Full Code Here

Examples of org.geomajas.spring.ReconfigurableApplicationContext.rollback()

        configLocations.addAll(Arrays.asList(request.getConfigLocations()));
        try {
          rollback.refresh(configLocations.toArray(new String[configLocations.size()]));
        } catch (GeomajasException e) {
          log.error("Could not refresh context", e);
          rollback.rollback();
          response.setApplicationNames(context.getBeanNamesForType(ClientApplicationInfo.class));
          throw e;
        }
        response.setApplicationNames(context.getBeanNamesForType(ClientApplicationInfo.class));
      }
View Full Code Here

Examples of org.geotools.data.DefaultTransaction.rollback()

            FeatureStore<SimpleFeatureType, SimpleFeature> featureStore = (FeatureStore<SimpleFeatureType, SimpleFeature>) featureSource;
            featureStore.setTransaction(transaction);
            featureStore.addFeatures(collection);
            transaction.commit();
        } catch (Exception eek) {
            transaction.rollback();
            throw new IOException("The transaction could now be finished, an error orrcurred", eek);
        } finally {
            transaction.close();
        }
    }
View Full Code Here

Examples of org.geotools.data.Transaction.rollback()

  @Override
  protected void doRollback(DefaultTransactionStatus status) {
    GeoToolsTransactionObject txObject = (GeoToolsTransactionObject) status.getTransaction();
    Transaction tx = txObject.getTransactionHolder().getTransaction();
    try {
      tx.rollback();
    } catch (IOException e) {
      log.warn(e.getMessage(), e);
    }
  }
View Full Code Here

Examples of org.geotools.data.VersioningFeatureStore.rollback()

            listener.dataStoreChange(new TransactionEvent(TransactionEventType.PRE_DELETE, layerName,
                    vstore.getFeatures(deletedFilter), rollback));

            // now do the actual rollback
            try {
                vstore.rollback(version, (Filter) rollback.getFilter(), users);
            } catch (Exception e) {
                throw new WFSTransactionException("Could not perform the rollback", e, rollback
                        .getHandle());
            }
View Full Code Here

Examples of org.gridkit.coherence.txlite.TxSession.rollback()

   
    Assert.assertThat(readA.get("A"), IsNull.nullValue());
    Assert.assertThat((String)dirtyA.get("A"), Is.is("A"));
    Assert.assertThat((String)writeA.get("A"), Is.is("A"));
   
    writeSession.rollback();
    Assert.assertThat(readA.get("A"), IsNull.nullValue());
    readSession.commit();
    Assert.assertThat(readA.get("A"), IsNull.nullValue());
    Assert.assertThat(dirtyA.get("A"), IsNull.nullValue());
    Assert.assertThat(writeA.get("A"), IsNull.nullValue());
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.