001 /**
002 * Copyright 2011 The Kuali Foundation Licensed under the
003 * Educational Community License, Version 2.0 (the "License"); you may
004 * not use this file except in compliance with the License. You may
005 * obtain a copy of the License at
006 *
007 * http://www.osedu.org/licenses/ECL-2.0
008 *
009 * Unless required by applicable law or agreed to in writing,
010 * software distributed under the License is distributed on an "AS IS"
011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012 * or implied. See the License for the specific language governing
013 * permissions and limitations under the License.
014 */
015
016 package org.kuali.common.impex.model.compare;
017
018 import org.kuali.common.impex.model.Schema;
019 import org.kuali.common.impex.model.Table;
020 import org.kuali.common.impex.model.UniqueConstraint;
021
022 public class UniqueConstraintDifference extends TableDifference {
023
024 UniqueConstraint unique1;
025 UniqueConstraint unique2;
026
027 public UniqueConstraintDifference(Schema schema1, Table table1, UniqueConstraint unique1, Schema schema2, Table table2, UniqueConstraint unique2) {
028 super(schema1, table1, schema2, table2);
029 this.unique1 = unique1;
030 this.unique2 = unique2;
031 }
032
033 public UniqueConstraint getUnique1() {
034 return unique1;
035 }
036
037 public void setUnique1(UniqueConstraint unique1) {
038 this.unique1 = unique1;
039 }
040
041 public UniqueConstraint getUnique2() {
042 return unique2;
043 }
044
045 public void setUnique2(UniqueConstraint unique2) {
046 this.unique2 = unique2;
047 }
048 }