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

liquibase.ext.mssql.change.DropStoredProcedureChange Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package liquibase.ext.mssql.change;

import liquibase.change.AbstractChange;
import liquibase.change.ChangeMetaData;
import liquibase.change.DatabaseChange;
import liquibase.database.Database;
import liquibase.ext.mssql.statement.DropStoredProcedureStatement;
import liquibase.statement.SqlStatement;

@DatabaseChange(name="dropProcedures", description = "Drop Stored Procedures", priority = ChangeMetaData.PRIORITY_DEFAULT)
public class DropStoredProcedureChange extends AbstractChange {
    
    private String catalogName;
    private String schemaName;
    
    public DropStoredProcedureChange()
    {
    }

    public String getConfirmationMessage() {
        return (new StringBuilder()).append("Stored procedures has been droped").toString();
    }

    public SqlStatement[] generateStatements(Database database) {
        DropStoredProcedureStatement statement = new DropStoredProcedureStatement(getCatalogName(), getSchemaName());
        return (new SqlStatement[] {
            statement
        });
    }

    public String getCatalogName() {
        return catalogName;
    }

    public void setCatalogName(String catalogName) {
        this.catalogName = catalogName;
    }
    
    public String getSchemaName()
    {
        return schemaName;
    }

    public void setSchemaName(String schemaName)
    {
        this.schemaName = schemaName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy