All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.common.impex.model.compare.SchemaCompareResult Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
/**
 * Copyright 2011 The Kuali Foundation Licensed under the
 * Educational Community License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may
 * obtain a copy of the License at
 *
 * http://www.osedu.org/licenses/ECL-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS IS"
 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package org.kuali.common.impex.model.compare;

import java.util.ArrayList;
import java.util.List;

public class SchemaCompareResult {

    List tableDifferences;
    List foreignKeyDifferences;
    List viewDifferences;
    List sequenceDifferences;

    public SchemaCompareResult() {
        tableDifferences = new ArrayList();
        foreignKeyDifferences = new ArrayList();
        viewDifferences = new ArrayList();
        sequenceDifferences = new ArrayList();
    }

    public List getTableDifferences() {
        return tableDifferences;
    }

    public void setTableDifferences(List tableDifferences) {
        this.tableDifferences = tableDifferences;
    }

    public List getForeignKeyDifferences() {
        return foreignKeyDifferences;
    }

    public void setForeignKeyDifferences(List foreignKeyDifferences) {
        this.foreignKeyDifferences = foreignKeyDifferences;
    }

    public List getSequenceDifferences() {
        return sequenceDifferences;
    }

    public void setSequenceDifferences(List sequenceDifferences) {
        this.sequenceDifferences = sequenceDifferences;
    }

    public List getViewDifferences() {
        return viewDifferences;
    }

    public void setViewDifferences(List viewDifferences) {
        this.viewDifferences = viewDifferences;
    }

    public boolean hasDifferences() {
        return !tableDifferences.isEmpty() && !foreignKeyDifferences.isEmpty() && !viewDifferences.isEmpty() && !sequenceDifferences.isEmpty();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy