Package org.evolizer.core.hibernate.session.api

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.saveObject()


    rev5.setCommitMessage("mimimi");
   
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
View Full Code Here


   
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
   
View Full Code Here

    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
   
      s.close();
View Full Code Here

      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
   
      s.close();
    } catch (EvolizerException e) {
View Full Code Here

      s.startTransaction();
      s.saveObject(rev1);
      s.saveObject(rev2);
      s.saveObject(rev3);
      s.saveObject(rev4);
      s.saveObject(rev5);
      s.endTransaction();
   
      s.close();
    } catch (EvolizerException e) {
      fail(e.getMessage());
View Full Code Here

  private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(object);
      s.endTransaction();

      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);
View Full Code Here

            lSession = EvolizerSessionHandler.getHandler().getCurrentSession(fDBUrl);
            lSession.startTransaction();
            for (AbstractFamixEntity element : keys) {
                sLogger.debug("Adding to database " + element.getClass().getName() + ":\n" + element.getUniqueName());
                lSession.saveObject(element);
            }
            lSession.flush();
            lSession.clear();

            sLogger.debug("Famix-Entities storage complete");
View Full Code Here

                for (FamixAssociation association : entityAssocaitionMap.get(element)) {
                    if ((association.getFrom().getId() != null) && (association.getTo().getId() != null)) {
                        sLogger.debug("Adding to database " + association.getClass().getName() + ":\n" + "FROM "
                                + association.getFrom().getUniqueName() + " TO " + association.getTo().getUniqueName());
                        // fSession.saveObject(association);
                        lSession.saveObject(association);
                    } else {
                        sLogger.warn("Missing ID in " + association.getType() + " association of entitye "
                                + element.getUniqueName() + "(" + element.getId() + ")");
                    }
                }
View Full Code Here

                lSession.flush();
                lSession.clear();
            }
            sLogger.debug("Associations storage complete");
           
            lSession.saveObject(fModel);
            lSession.flush();
            lSession.clear();
            sLogger.debug("Model entry stored");
           
            progress.worked(45);
View Full Code Here

   
      DummyBusinessEntity entity = new DummyBusinessEntity();
      entity.setAString("This is a test");
   
      s.startTransaction();
      s.saveObject(entity);
      s.endTransaction();
   
      s.close();
   
      fSessionHandler.dropSchema(fDBUrl, fDBDialect, fDBDriverName, fDBUser, fDBPasswd);
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.