Package org.databene.mad4db.cmd

Examples of org.databene.mad4db.cmd.IndexChange


      // no common columns - this is no change, but a removal and creation
      tableChange.addSubChange(new IndexDeletion(index1));
      tableChange.addSubChange(new IndexCreation(index2));
    } else {
      // there are common columns
      CompositeStructuralChange<DBIndex> indexChange = new IndexChange(index1);
      OrderedListComparator<DBColumn, DBIndex> comparator = new IndexColumnListComparator();
      comparator.compareComponents(columns(index1), columns(index2), indexChange);
      if (index1.isUnique() != index2.isUnique())
        indexChange.addSubChange(new IndexUniquenessChange(index2));
      if (indexChange.getSubChanges().size() > 0)
        tableChange.addSubChange(indexChange);
    }
  }
View Full Code Here

TOP

Related Classes of org.databene.mad4db.cmd.IndexChange

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.