Package org.databene.mad4db.cmd

Examples of org.databene.mad4db.cmd.ConstraintColumnsRemoval


  public PKColumnListListComparator() {
    super(null);
  }

  public StructuralChange<?> deletion(DBColumn removedColumn, DBPrimaryKeyConstraint constraint) {
    return new ConstraintColumnsRemoval(constraint, removedColumn.getName());
  }
View Full Code Here


          DBConstraint constraint2 = creation.getAffectedObject();
          String[] colNames2 = constraint2.getColumnNames();
          if (ArrayUtil.containsAll(colNames2, colNames1)) {
            // columns were removed from the constraint
            String[] removedColumns = diff(colNames1, colNames2);
            changesToAdd.add(new ConstraintColumnsRemoval(constraint1, removedColumns));
            creationsToRemove.add(creation);
            subChangeIterator.remove();
          } else if (ArrayUtil.containsAll(colNames1, colNames2)) {
            // columns were added to the constraint
            String[] addedColumns = diff(colNames2, colNames1);
View Full Code Here

TOP

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

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.