Package org.exolab.castor.util

Examples of org.exolab.castor.util.ChangeLog2XML$Changelog


     */
    public ChangeLog2XML createChangeLog2XML() {
        if (LOG.isDebugEnabled()) {
            LOG.debug("Creating new ChangeLog2XML instance.");
        }
        ChangeLog2XML changeLog2XML = new ChangeLog2XML();
        changeLog2XML.setInternalContext(_internalContext);
        return changeLog2XML;
    }
View Full Code Here


  private void executeUpsert(DbSession session, ActiveRuleChange.Type type, List<ChangeLog> changes) {

    Iterator<ChangeLog> changeLogIterator = changes.iterator();
    if (changeLogIterator.hasNext()) {
      // startCase
      ChangeLog change = changeLogIterator.next();
      int currentId = change.getId();
      Date currentTimeStamp = change.getCreatedAt();
      String currentAuthor = change.getUserLogin();
      ActiveRuleChange ruleChange = newActiveRuleChance(type, change);
      processRuleChange(ruleChange, change);

      while (changeLogIterator.hasNext()) {
        change = changeLogIterator.next();
        int id = change.getId();
        if (id != currentId) {
          saveActiveRuleChange(session, ruleChange, currentAuthor, currentTimeStamp);
          currentId = id;
          currentTimeStamp = change.getCreatedAt();
          currentAuthor = change.getUserLogin();
          ruleChange = newActiveRuleChance(type, change);
        }
        processRuleChange(ruleChange, change);
      }
      // save the last
View Full Code Here

TOP

Related Classes of org.exolab.castor.util.ChangeLog2XML$Changelog

Copyright © 2018 www.massapicom. 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.