Package org.olat.core.commons.persistence

Examples of org.olat.core.commons.persistence.DBQuery.executeUpdate()


        DBQuery update = DBFactory.getInstance().createQuery(
            "update org.olat.core.logging.activity.LoggingObject set simpleDuration = :duration where log_id = :logid");
        update.setLong("duration", duration);
        update.setLong("logid", lastLogObj.getKey());
        // we have to do FlushMode.AUTO (which is the default anyway)
        update.executeUpdate(FlushMode.AUTO);
      }
    }
   
    // store the current logging object in the session - for duration calculation at next log
    session_.putEntry(USESS_KEY_USER_ACTIVITY_LOGGING_LAST_LOG, logObj);
View Full Code Here


      cal.set(Calendar.HOUR_OF_DAY, 0);
      cal.set(Calendar.MINUTE, 0);
      cal.set(Calendar.SECOND, 0);
      cal.set(Calendar.MILLISECOND, 0);
      query.setTimestamp("latestDate", cal.getTime());
      int subCounter = query.executeUpdate(FlushMode.AUTO);
     
      DBFactory.getInstance().intermediateCommit();
      log.audit("**** Migrated " + subCounter + " subscribers. ****");

      uhd.setBooleanDataValue(TASK_MIGRATE_NOTIFICATIONS, true);
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.