001package org.andromda.maven.plugin.andromdapp;
002
003import java.sql.Connection;
004import java.util.Map;
005
006/**
007 * Represents a schema management task.
008 *
009 * @author Chad Brandon
010 */
011public interface SchemaManagement
012{
013    /**
014     * Executes the schema related task and returns the resulting SQL script (if applicable).
015     *
016     * @param connection the connection if required to execute the task.
017     * @param options the options used during execution.
018     * @return SQL script
019     *
020     * @throws Exception
021     */
022    public String execute(Connection connection, Map options) throws Exception;
023}