Package org.databene.mad4db.cmd

Examples of org.databene.mad4db.cmd.ConstraintColumnsAddition


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

  public StructuralChange<?> creation(DBColumn createdColumn, DBPrimaryKeyConstraint constraint) {
    return new ConstraintColumnsAddition(constraint, createdColumn.getName());
  }
View Full Code Here


            creationsToRemove.add(creation);
            subChangeIterator.remove();
          } else if (ArrayUtil.containsAll(colNames1, colNames2)) {
            // columns were added to the constraint
            String[] addedColumns = diff(colNames2, colNames1);
            changesToAdd.add(new ConstraintColumnsAddition(constraint1, addedColumns));
            creationsToRemove.add(creation);
            subChangeIterator.remove();
          } else {
            // the constraint is completely different - leave this as a pair of DELETION and CREATION
          }
View Full Code Here

TOP

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

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.