liquibase.executor
Interface Executor

All Known Implementing Classes:
AbstractExecutor, JdbcExecutor, LoggingExecutor, MockExecutor

public interface Executor


Method Summary
 void comment(String message)
          Adds a comment to the database.
 void execute(Change change)
          Write methods
 void execute(Change change, List<SqlVisitor> sqlVisitors)
           
 void execute(SqlStatement sql)
           
 void execute(SqlStatement sql, List<SqlVisitor> sqlVisitors)
           
 int queryForInt(SqlStatement sql)
           
 int queryForInt(SqlStatement sql, List<SqlVisitor> sqlVisitors)
           
 List<Map<String,?>> queryForList(SqlStatement sql)
           
 List queryForList(SqlStatement sql, Class elementType)
           
 List queryForList(SqlStatement sql, Class elementType, List<SqlVisitor> sqlVisitors)
           
 List<Map<String,?>> queryForList(SqlStatement sql, List<SqlVisitor> sqlVisitors)
           
 long queryForLong(SqlStatement sql)
           
 long queryForLong(SqlStatement sql, List<SqlVisitor> sqlVisitors)
           
<T> T
queryForObject(SqlStatement sql, Class<T> requiredType)
          Read methods
<T> T
queryForObject(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors)
           
 void setDatabase(Database database)
           
 int update(SqlStatement sql)
           
 int update(SqlStatement sql, List<SqlVisitor> sqlVisitors)
           
 boolean updatesDatabase()
           
 

Method Detail

setDatabase

void setDatabase(Database database)

queryForObject

<T> T queryForObject(SqlStatement sql,
                     Class<T> requiredType)
                 throws DatabaseException
Read methods

Throws:
DatabaseException

queryForObject

<T> T queryForObject(SqlStatement sql,
                     Class<T> requiredType,
                     List<SqlVisitor> sqlVisitors)
                 throws DatabaseException
Throws:
DatabaseException

queryForLong

long queryForLong(SqlStatement sql)
                  throws DatabaseException
Throws:
DatabaseException

queryForLong

long queryForLong(SqlStatement sql,
                  List<SqlVisitor> sqlVisitors)
                  throws DatabaseException
Throws:
DatabaseException

queryForInt

int queryForInt(SqlStatement sql)
                throws DatabaseException
Throws:
DatabaseException

queryForInt

int queryForInt(SqlStatement sql,
                List<SqlVisitor> sqlVisitors)
                throws DatabaseException
Throws:
DatabaseException

queryForList

List queryForList(SqlStatement sql,
                  Class elementType)
                  throws DatabaseException
Throws:
DatabaseException

queryForList

List queryForList(SqlStatement sql,
                  Class elementType,
                  List<SqlVisitor> sqlVisitors)
                  throws DatabaseException
Throws:
DatabaseException

queryForList

List<Map<String,?>> queryForList(SqlStatement sql)
                                 throws DatabaseException
Throws:
DatabaseException

queryForList

List<Map<String,?>> queryForList(SqlStatement sql,
                                 List<SqlVisitor> sqlVisitors)
                                 throws DatabaseException
Throws:
DatabaseException

execute

void execute(Change change)
             throws DatabaseException
Write methods

Throws:
DatabaseException

execute

void execute(Change change,
             List<SqlVisitor> sqlVisitors)
             throws DatabaseException
Throws:
DatabaseException

execute

void execute(SqlStatement sql)
             throws DatabaseException
Throws:
DatabaseException

execute

void execute(SqlStatement sql,
             List<SqlVisitor> sqlVisitors)
             throws DatabaseException
Throws:
DatabaseException

update

int update(SqlStatement sql)
           throws DatabaseException
Throws:
DatabaseException

update

int update(SqlStatement sql,
           List<SqlVisitor> sqlVisitors)
           throws DatabaseException
Throws:
DatabaseException

comment

void comment(String message)
             throws DatabaseException
Adds a comment to the database. Currently does nothing but is over-ridden in the output JDBC template

Parameters:
message -
Throws:
DatabaseException

updatesDatabase

boolean updatesDatabase()


Copyright © 2016 Liquibase.org. All rights reserved.