Examples of rollback()


Examples of org.lab41.dendrite.metagraph.DendriteGraphTx.rollback()

                headers.setContentType(new MediaType("application", "vnd.rexster+gml"));
                headers.set("Content-Disposition", "attachment; filename=\"graph.gml\"");

                GMLWriter.outputGraph(tx, byteArrayOutputStream);
            } else {
                tx.rollback();

                return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
            }
        } catch (IOException e) {
            tx.rollback();
View Full Code Here

Examples of org.lab41.dendrite.metagraph.MetaGraphTx.rollback()

                return new ResponseEntity<>(json.toString(), responseHeaders, HttpStatus.BAD_REQUEST);
            }

            return graphSearch(graphMetadata.getId().toString(), body);
        } finally {
            tx.rollback();
        }
    }

    @PreAuthorize("hasPermission(#graphId, 'graph', 'admin')")
    @RequestMapping(value = "/api/graphs/{graphId}/search", method = RequestMethod.POST)
View Full Code Here

Examples of org.lealone.hbase.transaction.Transaction.rollback()

                this.transaction = null;
                List<Future<Void>> futures = null;
                if (!getAutoCommit() && sessionRemoteCache.size() > 0)
                    futures = parallelCommitOrRollback(null);

                transaction.rollback();
                super.rollback();

                if (futures != null)
                    waitFutures(futures);
            } finally {
View Full Code Here

Examples of org.locationtech.udig.project.command.UndoableCommand.rollback()

        final boolean previousDeliver = model.eDeliver();
        model.eSetDeliver(false);
        try{
        for (int i = finalizerCommands.size() - 1; i > -1; i--) {
            UndoableCommand command = (UndoableCommand) finalizerCommands.get(i);
            command.rollback(monitor);
        }

        for (int i = commands.size() - 1; i > -1; i--) {
            // reset the eSetDeliverState so that the last change will trigger a re-render
            if( i==0 ){
View Full Code Here

Examples of org.locationtech.udig.project.command.UndoableMapCommand.rollback()

       
        assertEquals("Current shape should equal new hole", editGeom.getHoles().get(0), handler.getCurrentShape()); //$NON-NLS-1$
        assertEquals("A point should have been added to hole", Point.valueOf(10,10), handler.getCurrentShape().getPoint(0)); //$NON-NLS-1$
        assertEquals( EditState.CREATING, handler.getCurrentState());
       
        command.rollback(new NullProgressMonitor());

        assertEquals( editGeom.getShell(), handler.getCurrentShape());
        assertEquals(0, editGeom.getHoles().size());
        assertEquals( EditState.MODIFYING, handler.getCurrentState());
       
View Full Code Here

Examples of org.mapdb.DB.rollback()

        db.commit()//persist changes into disk

        map.put(3,"three");
        //map.keySet() is now [1,2,3]
        db.rollback(); //revert recent changes
        //map.keySet() is now [1,2]

        db.close();

    }
View Full Code Here

Examples of org.modeshape.jcr.txn.Transactions.Transaction.rollback()

            try {
                V result = operation.call();
                txn.commit();
                return result;
            } catch (Exception e) {
                txn.rollback();
                throw (e instanceof RuntimeException) ? (RuntimeException)e : new RuntimeException(e);
            }
        } catch (IllegalStateException | SystemException err) {
            throw new SystemFailureException(err);
        } catch (NotSupportedException e) {
View Full Code Here

Examples of org.mule.api.exception.RollbackSourceCallback.rollback()

                if (e instanceof MessagingException)
                {
                    MessagingException messagingException = (MessagingException) e;
                    if (!messagingException.getEvent().isTransacted() && messagingException.causedRollback())
                    {
                        rollbackMethod.rollback();
                    }
                }
                else
                {
                    getEndpoint().getMuleContext().getExceptionListener().handleException(e, rollbackMethod);
View Full Code Here

Examples of org.mule.api.transaction.Transaction.rollback()

        SpringTransactionFactory factory = new SpringTransactionFactory();
        factory.setManager((PlatformTransactionManager)mockPTM.proxy());

        Transaction tx = factory.beginTransaction(muleContext);
//        TransactionCoordination.getInstance().bindTransaction(tx);
        tx.rollback();
    }

}
View Full Code Here

Examples of org.neo4j.neoclipse.graphdb.GraphDbServiceManager.rollback()

        {
            sm.commit();
        }
        else
        {
            sm.rollback();
        }
    }

    public void cleanPropertySheetBeforeShutdown()
    {
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.