001/*
002 * Copyright 2005-2007 The Kuali Foundation
003 *
004 *
005 * Licensed under the Educational Community License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.opensource.org/licenses/ecl2.php
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.kualigan.maven.plugins.liquibase;
018
019import liquibase.database.Database;
020
021import org.apache.maven.plugin.MojoExecutionException;
022import org.apache.maven.plugin.logging.Log;
023
024/**
025 * Interface for exposing methods to handle migration
026 *
027 * @author Leo Przybylski (przybyls@arizona.edu)
028 */
029public interface MigrateHelper {
030    String ROLE = MigrateHelper.class.getName();
031    
032    void setSource(final Database source);
033    
034    Database getSource();
035
036    void setTarget(final Database target);
037
038    Database getTarget();
039    
040    void migrate(final Database source, final Database target, final Log log, final Boolean interactiveMode) throws MojoExecutionException;
041    
042    /*
043    void migrate(final Database source, 
044                 final Database target, 
045                 final String tableName, 
046                 final ProgressObservable observable);
047    */
048}