Class NoSqlExecutor

  • All Implemented Interfaces:
    liquibase.executor.Executor, liquibase.plugin.Plugin

    public class NoSqlExecutor
    extends liquibase.executor.AbstractExecutor
    • Constructor Detail

      • NoSqlExecutor

        public NoSqlExecutor()
    • Method Detail

      • setDatabase

        public void setDatabase​(liquibase.database.Database database)
        Specified by:
        setDatabase in interface liquibase.executor.Executor
        Overrides:
        setDatabase in class liquibase.executor.AbstractExecutor
      • getName

        public String getName()
        Specified by:
        getName in interface liquibase.executor.Executor
        Specified by:
        getName in class liquibase.executor.AbstractExecutor
      • getPriority

        public int getPriority()
        Specified by:
        getPriority in interface liquibase.executor.Executor
        Specified by:
        getPriority in class liquibase.executor.AbstractExecutor
      • supports

        public boolean supports​(liquibase.database.Database database)
      • queryForObject

        public <T> T queryForObject​(liquibase.statement.SqlStatement sql,
                                    Class<T> requiredType)
                             throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForObject

        public <T> T queryForObject​(liquibase.statement.SqlStatement sql,
                                    Class<T> requiredType,
                                    List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
                             throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForLong

        public long queryForLong​(liquibase.statement.SqlStatement sql)
                          throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForLong

        public long queryForLong​(liquibase.statement.SqlStatement sql,
                                 List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
                          throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForInt

        public int queryForInt​(liquibase.statement.SqlStatement sql)
      • queryForInt

        public int queryForInt​(liquibase.statement.SqlStatement sql,
                               List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
      • queryForList

        public List<Object> queryForList​(liquibase.statement.SqlStatement sql,
                                         Class elementType)
                                  throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForList

        public List<Object> queryForList​(liquibase.statement.SqlStatement sql,
                                         Class elementType,
                                         List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
                                  throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • queryForList

        public List<Map<String,​?>> queryForList​(liquibase.statement.SqlStatement sql)
      • queryForList

        public List<Map<String,​?>> queryForList​(liquibase.statement.SqlStatement sql,
                                                      List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
      • execute

        public void execute​(liquibase.statement.core.UpdateStatement updateStatement)
                     throws liquibase.exception.DatabaseException
        TODO: Raise with Liquibase why is this used instead of AbstractNoSqlHistoryService.clearAllCheckSums() in Liquibase.clearCheckSums()
        Parameters:
        updateStatement - the UpdateStatement statement with MD5SUM=null
        Throws:
        liquibase.exception.DatabaseException - in case of a failure
      • execute

        public void execute​(liquibase.statement.SqlStatement sql)
                     throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • execute

        public void execute​(liquibase.statement.SqlStatement sql,
                            List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
                     throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • update

        public int update​(liquibase.statement.SqlStatement sql)
                   throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • update

        public int update​(liquibase.statement.SqlStatement sql,
                          List<liquibase.sql.visitor.SqlVisitor> sqlVisitors)
                   throws liquibase.exception.DatabaseException
        Throws:
        liquibase.exception.DatabaseException
      • comment

        public void comment​(String message)
      • updatesDatabase

        public boolean updatesDatabase()