Package org.exolab.castor.jdo

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


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


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

        catch(Exception e)
        {
            e.printStackTrace();
            try
            {
                db.rollback();
            }
            catch (Exception e1)
            {
                e1.printStackTrace();
            }
View Full Code Here

        logger.warn("An error occured when cleaning assets. Let's rollback the transaction.", tr);
        if (db != null)
        {
          try
          {
            db.rollback();
            db.close();
          }
          catch (Exception ex2)
          {
            logger.error("Failed to rollback transaction after an error occured. Message: " + ex2.getMessage());
View Full Code Here

                          contentVersionIds.add(contentVersion.getId());
                          logger.info("We clear the meta info contentVersion " + contentVersion.getId());
                        }
                        */
     
                        db.rollback();
     
                        db.close();
                       
                        Iterator contentVersionIdsIterator = contentVersionIds.iterator();
                        logger.info("Versions:" + contentVersionIds.size());
View Full Code Here

          }
         
        }
      }
     
      db.rollback();
    }
    catch (Exception e)
    {
      logger.error("Problem recaching:" + e.getMessage(), e);
    }
View Full Code Here

      fileName = fileNamePrefix + "_" + tempFile.length() + ".xml";
      String fileSystemName = filePath + File.separator + fileName;
      File file = new File(fileSystemName);
      tempFile.renameTo(file);
     
      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

      marshaller.marshal(infoGlueExportImpl);
     
      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

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.