Examples of IndexDeletion


Examples of org.databene.mad4db.cmd.IndexDeletion

  public StructuralChange<DBIndex> creation(DBIndex index) {
    return new IndexCreation(index);
  }

  public StructuralChange<DBIndex> deletion(DBIndex index) {
    return new IndexDeletion(index);
  }
View Full Code Here

Examples of org.databene.mad4db.cmd.IndexDeletion

  public void compareObjects(DBIndex index1, DBIndex index2, CompositeStructuralChange<?> tableChange) {
    String[] colNames1 = index1.getColumnNames();
    String[] colNames2 = index2.getColumnNames();
    if (ArrayUtil.commonElements(colNames1, colNames2).length == 0) {
      // 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();
View Full Code Here

Examples of org.databene.mad4db.cmd.IndexDeletion

  @SuppressWarnings({ "unchecked", "rawtypes" })
  public static <E extends DBObject> Deletion<E> deletion(E dbObject) {
    if (dbObject instanceof DBConstraint)
      return (Deletion<E>) new ConstraintDeletion((DBConstraint) dbObject);
    else if (dbObject instanceof DBIndex)
      return (Deletion<E>) new IndexDeletion((DBIndex) dbObject);
    else if (dbObject instanceof DBSequence)
      return (Deletion<E>) new SequenceDeletion((DBSequence) dbObject);
    else
      return new Deletion<E>(dbObject);
  }
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.