Package net.sf.archimede.model

Examples of net.sf.archimede.model.DatabaseUtil.commitTransaction()


           
            FolderDao.createInstance().save(thesisFolder);
            this.addMetadateInFolder(thesisMetadata, thesisFolder);
            this.addFilesInFolder(thesisFolderFile, thesisFolder);
           
            dbUtil.commitTransaction();
        } catch (Exception e) {
            e.printStackTrace();
            dbUtil.rollbackTransaction();
        }
    }
View Full Code Here


                      ConversionFolder conversionFolder = new ConversionFolder(oldFolder);
                      if (! conversionFolder.existsInRepository()) {
                            conversionFolder.insertInRepository();
                        }
                  }
                  dbUtil.commitTransaction();
              } catch (Exception e) {
                  e.printStackTrace();
                  dbUtil.rollbackTransaction();
              }
          }
View Full Code Here

                
             }
            
             indexer.closeIndex();
            
             dbUtil.commitTransaction();
         } catch (Exception e) {
             e.printStackTrace();
             dbUtil.rollbackTransaction();
         }
     }
View Full Code Here

                rootCollection.setOwnerUsers(ownerUsers);
            }
           
            collectionDao.save(rootCollection);
           
            dbUtil.commitTransaction();
        } catch (Exception e) {
            throw new RuntimeException(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.