Package org.exolab.castor.jdo

Examples of org.exolab.castor.jdo.Database.rollback()


        }
        catch(Exception e)
        {
          try
          {
            db.rollback();
          }
          catch(Exception e2) { e2.printStackTrace(); }
          logger.error("An error occurred when updating content version for content: " + e.getMessage(), e);
        }
        finally
View Full Code Here


    }
    catch ( Exception e)
    {
      try
          {
              db.rollback();
              db.close();
          }
      catch (Exception e1)
          {
              logger.error("An error occurred when importing a repository: " + e.getMessage(), e);
View Full Code Here

      processBean.updateProcess("Marshalling main export file done in " + (t.getElapsedTime() / 1000) + " seconds");

      osw.flush();
      osw.close();
     
      db.rollback();
      db.close();

     
      //Here we zip the dir
      String fileUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + fileName + "_" + names + ".zip";
View Full Code Here

    }
    catch (Throwable e)
    {
      processBean.setError("An error occured while exporting repository. Error message: " + e.getClass(), e);
      logger.error("An error was found exporting a repository: " + e.getMessage(), e);
      db.rollback();
    }
  }
 

  protected int exportHeavyEntities(String[] repositories, String type, String folderName, Integer assetMaxSize, boolean onlyPublishedVersions, String exportFileName, List<SiteNode> allReturningSiteNodes, List<Content> allReturningContents) throws Exception
View Full Code Here

         
          osw.flush();
          osw.close();
        }
       
        db.rollback();
      }
      catch (Exception e)
      {
        logger.error("An error was found exporting a repository: " + e.getMessage(), e);
        db.rollback();
View Full Code Here

        db.rollback();
      }
      catch (Exception e)
      {
        logger.error("An error was found exporting a repository: " + e.getMessage(), e);
        db.rollback();
      }
      finally
      {
        db.close();
      }
View Full Code Here

        File moduleRoot = new File(localPath + File.separator + versionControlServerBean.getModuleName());
        getDeploymentComparisonBeansRecursive(moduleRoot, deploymentCompareBeans, null, db, principal, cvsFakeContentId, false, false, false);
 
      ceb.throwIfNotEmpty();
           
      db.rollback()
    }
    catch(Exception e)
    {
      e.printStackTrace();
      //logger.error("An error occurred so we should not complete the transaction:" + e, e);
View Full Code Here

    {
      e.printStackTrace();
      //logger.error("An error occurred so we should not complete the transaction:" + e, e);
      try
      {
        db.rollback();
      }
      catch (Exception e2)
      {
      }
      throw new SystemException(e.getMessage());
View Full Code Here

        }
        catch(Exception e)
        {
          try
          {
            db.rollback();
          }
          catch(Exception e2) { e2.printStackTrace(); }
                  logger.error("An error occurred when updating content version for content: " + e.getMessage(), e);         
        }
        finally
View Full Code Here

    }
    catch ( Exception e)
    {
      try
            {
                db.rollback();
                db.close();
            }
      catch (Exception e1)
            {
                logger.error("An error occurred when importing a repository: " + e.getMessage(), e);
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.