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.Column; 019 import org.kuali.common.impex.model.Schema; 020 import org.kuali.common.impex.model.Table; 021 022 public class MissingColumn extends ColumnDifference { 023 024 public MissingColumn(Schema sourceSchema, Table sourceTable, Schema missingSchema, Table missingTable, Column col) { 025 super(sourceSchema, sourceTable, col, missingSchema, missingTable, null); 026 setType(TableDifferenceType.MISSING_COLUMN); 027 } 028 029 public Schema getSourceSchema() { 030 return schema1; 031 } 032 033 public Schema getMissingSchema() { 034 return schema2; 035 } 036 037 public Table getSourceTable() { 038 return table1; 039 } 040 041 public Table getMissingTable() { 042 return table2; 043 } 044 045 public Column getColumn() { 046 return column1; 047 } 048 }