Examples of rollback()


Examples of org.openrdf.repository.sail.SailRepositoryConnection.rollback()

                con.add(inStream, baseUri, forFileName, ctx);

                con.commit();
            } finally {
                if (con.isActive()) {
                    con.rollback();
                }
                con.close();
            }
        } catch (RepositoryException re) {
            log.error("RepositoryException: {}", re.getMessage());
View Full Code Here

Examples of org.openrdf.sail.NotifyingSailConnection.rollback()

                sc.begin();

                assertEquals(1, listener1.getRemoved());
                assertEquals(2, listener2.getRemoved());
            } finally {
                sc.rollback();
                sc.close();
            }
        }
    }
View Full Code Here

Examples of org.openrdf.sail.SailConnection.rollback()

                 
                  c.commit();
 
                  _logger.info("Read " + handler.m_count + " statements from '" + sourceURL + "'");
              } catch (RepositoryException e) {
                  if (c != null) c.rollback();
              } finally {
                  if (c != null) c.close();
              }
          } catch (Exception e) {
              throw new ModelReadFromFileException("Failed to read data from '" + sourceURL + "'", e);
View Full Code Here

Examples of org.opensolaris.opengrok.jdbc.ConnectionResource.rollback()

                    conn.commit();
                    break retry;
                } catch (SQLException sqle) {
                    handleSQLException(sqle, i);
                    conn.rollback();
                } finally {
                    connectionManager.releaseConnection(conn);
                }
            }
        }
View Full Code Here

Examples of org.orm.PersistentTransaction.rollback()

            t.commit();

            respuestas = 1;
          }
          catch (Exception e) {
            t.rollback();
            /*
             * -3 if exist error in ORM tier
             */

            respuestas = -3;
View Full Code Here

Examples of org.osgi.service.deploymentadmin.spi.ResourceProcessor.rollback()

    protected void rollback(DeploymentSessionImpl session) {
        for (ListIterator i = m_processors.listIterator(m_processors.size()); i.hasPrevious();) {
            ResourceProcessor processor = (ResourceProcessor) i.previous();
            try {
                processor.rollback();
            }
            catch (Exception e) {
                // We cannot throw an exception, see OSGi spec.
                session.getLog().log(LogService.LOG_ERROR, "Rollback of resource processor '" + processor + "' failed", e);
            }
View Full Code Here

Examples of org.ozoneDB.ExternalTransaction.rollback()

                ((GZIPOutputStream)out).finish();
            }
            out.close();
        }
        finally {
            tx.rollback();
        }
    }

}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.Renderer.rollback()

                state = restoreState.deriveForPagebreak();
              }

              final DefaultOutputFunction rollbackOutputFunction = (DefaultOutputFunction) state.getLayoutProcess().getOutputFunction();
              final Renderer rollbackRenderer = rollbackOutputFunction.getRenderer();
              rollbackRenderer.rollback();

              validate(state);

              isInRollBackMode = true;
              fallBackState = null; // there is no way we can fall-back inside a roll-back ..
View Full Code Here

Examples of org.picketlink.idm.api.Transaction.rollback()

    public void recoverFromIDMError(Exception e) {
        try {
            // We need to restart Hibernate transaction if it's available. First rollback old one and then start new one
            Transaction idmTransaction = idmService_.getIdentitySession().getTransaction();
            if (idmTransaction.isActive()) {
                idmTransaction.rollback();
                idmTransaction.start();
                log.info("IDM error recovery finished. Old transaction has been rolled-back and new transaction has been started");
            }
        } catch (Exception e1) {
            log.warn("Error during recovery of old error", e1);
View Full Code Here

Examples of org.sleuthkit.datamodel.SleuthkitCase.CaseDbTransaction.rollback()

                }
            }

            trans.commit();
        } catch (TskCoreException ex) {
            trans.rollback();
        }
        return fileSetRootDir;
    }

    /**
 
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.