Package liquibase.sql.visitor

Examples of liquibase.sql.visitor.AppendSqlVisitor


       
        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final SqlStatement dropTableStatement = new DropTableStatement(null, null, "test_table", false);
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
        appendSqlVisitor.setApplyToRollback(false);
        appendSqlVisitor.setValue(" SHOULD NOT BE APPENDED");
       
        sqlVisitors.add(appendSqlVisitor);
               
        database.executeRollbackStatements(new SqlStatement[] {dropTableStatement}, sqlVisitors);
View Full Code Here


       
        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final SqlStatement dropTableStatement = new DropTableStatement(null, null, "test_table", false);       
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
       
        appendSqlVisitor.setApplyToRollback(true);
        appendSqlVisitor.setValue(" SHOULD BE APPENDED");
       
        sqlVisitors.add(appendSqlVisitor);
               
        database.executeRollbackStatements(new SqlStatement[] {dropTableStatement}, sqlVisitors);
View Full Code Here

        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final CreateTableChange change = new CreateTableChange();
        change.setTableName("test_table");
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
        appendSqlVisitor.setApplyToRollback(false);
        appendSqlVisitor.setValue(" SHOULD NOT BE APPENDED");
       
        sqlVisitors.add(appendSqlVisitor);
               
        database.executeRollbackStatements(change, sqlVisitors);
View Full Code Here

        final List<SqlVisitor> sqlVisitors = new ArrayList<SqlVisitor>();
       
        final CreateTableChange change = new CreateTableChange();
        change.setTableName("test_table");
       
        final AppendSqlVisitor appendSqlVisitor = new AppendSqlVisitor();
       
        appendSqlVisitor.setApplyToRollback(true);
        appendSqlVisitor.setValue(" SHOULD BE APPENDED");
       
        sqlVisitors.add(appendSqlVisitor);
               
        database.executeRollbackStatements(change, sqlVisitors);
View Full Code Here

TOP

Related Classes of liquibase.sql.visitor.AppendSqlVisitor

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.