Package liquibase.statement.core

Examples of liquibase.statement.core.DropViewStatement


        if (this.fullDefinition != null) {
            fullDefinition = this.fullDefinition;
        }

    if (!supportsReplaceIfExistsOption(database) && replaceIfExists) {
      statements.add(new DropViewStatement(getCatalogName(), getSchemaName(), getViewName()));
      statements.add(new CreateViewStatement(getCatalogName(), getSchemaName(), getViewName(), getSelectQuery(), false)
                    .setFullDefinition(fullDefinition));
    } else {
      statements.add(new CreateViewStatement(getCatalogName(), getSchemaName(), getViewName(), getSelectQuery(), replaceIfExists)
                    .setFullDefinition(fullDefinition));
View Full Code Here


    }

    @Override
    public SqlStatement[] generateStatements(Database database) {
        return new SqlStatement[]{
                new DropViewStatement(getCatalogName(), getSchemaName(), getViewName()),
        };
    }
View Full Code Here

TOP

Related Classes of liquibase.statement.core.DropViewStatement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.