Examples of rollback()


Examples of com.thinkaurelius.titan.core.TitanGraph.rollback()

                    for (TitanVertex v : vertices) {
                        System.out.println(idAssigner.getIDManager().getPartitionID(v.getID()));
                    }
                    System.out.println("_____________________________________________");
                }
                graph.rollback();
                graph.shutdown();
            }
        }
    }
View Full Code Here

Examples of com.thinkaurelius.titan.core.TitanTransaction.rollback()

                    }
                    line = br.readLine();
                }
            }
        } catch (Exception e) {
            tx.rollback();
            throw e;
        }

        tx.commit();
    }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction.rollback()

        StoreTransaction txh = null;
        try {
            txh = provider.openTx();
            return exe.call(txh);
        } catch (StorageException e) {
            if (txh!=null) txh.rollback();
            txh=null;
            throw e;
        } finally {
            if (txh!=null) txh.commit();
        }
View Full Code Here

Examples of com.tinkerpop.blueprints.TransactionalGraph.rollback()

        TransactionalGraph tgraph = (TransactionalGraph) graph;
        try {
          tgraph.commit();
          return;
        } catch (Exception e) {
          tgraph.rollback();
          logger.warn("Exception thrown while saving edge: " + e.toString());
          logger.warn("retry: " + retryCount);
          /* need to work out the Exceptions to handle?! */
          prevException = e;
        }
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.orient.OrientGraph.rollback()

                graph.commit();

                success = true;
              } catch (OConcurrentModificationException e) {
                graph.rollback();

                versionCollisions.incrementAndGet();
                Thread.yield();
              } catch (ORecordDuplicatedException e) {
                graph.rollback();
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.SQLContainer.rollback()

        try {
            container.removeItem(itemToRemove);
            container.commit();
        } catch (OptimisticLockException e) {
            // This is expected, refresh and try again.
            container.rollback();
            container.removeItem(itemToRemove);
            container.commit();
        }
        Object id = container.addItem();
        RowItem item = (RowItem) container.getItem(id);
View Full Code Here

Examples of com.youtube.vitess.vtgate.VtGate.rollback()

    try {
      vtgate.execute(insertQuery);
      Assert.fail("failed to throw exception");
    } catch (IntegrityException e) {
    } finally {
      vtgate.rollback();
      vtgate.close();
    }
  }

  @Test
View Full Code Here

Examples of dovetaildb.api.ApiService.rollback()

        throw new RuntimeException();
      }
      api.commit();
      normalFinish = true;
    } finally {
      if (! normalFinish) api.rollback();
    }
    return returnVal;
  }
 
  @Override
View Full Code Here

Examples of hermes.store.MessageStore.rollback()

            {
               String message = "Cannot delete from store " + store.getId();

               try
               {
                  store.rollback();
               }
               catch (Throwable e1)
               {
                  log.error(e1);
               }
View Full Code Here

Examples of in.partake.model.dao.PartakeConnection.rollback()

            return result;
        } finally {
          try {
            if (con.isInTransaction())
              con.rollback();
          } finally {
            con.invalidate();
          }
        }
    }
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.