liquibase.executor
Class LoggingExecutor
java.lang.Object
liquibase.executor.AbstractExecutor
liquibase.executor.LoggingExecutor
- All Implemented Interfaces:
- Executor
- Direct Known Subclasses:
- MockExecutor
public class LoggingExecutor
- extends AbstractExecutor
Method Summary |
void |
comment(String message)
Adds a comment to the database. |
void |
execute(SqlStatement sql)
|
void |
execute(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
|
protected Writer |
getOutput()
|
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)
|
|
queryForObject(SqlStatement sql,
Class<T> requiredType)
Read methods |
|
queryForObject(SqlStatement sql,
Class<T> requiredType,
List<SqlVisitor> sqlVisitors)
|
int |
update(SqlStatement sql)
|
int |
update(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
|
boolean |
updatesDatabase()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingExecutor
public LoggingExecutor(Executor delegatedExecutor,
Writer output,
Database database)
getOutput
protected Writer getOutput()
execute
public void execute(SqlStatement sql)
throws DatabaseException
- Throws:
DatabaseException
update
public int update(SqlStatement sql)
throws DatabaseException
- Throws:
DatabaseException
execute
public void execute(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
update
public int update(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
comment
public void comment(String message)
throws DatabaseException
- Description copied from interface:
Executor
- Adds a comment to the database. Currently does nothing but is over-ridden in the output JDBC template
- Throws:
DatabaseException
queryForObject
public <T> T queryForObject(SqlStatement sql,
Class<T> requiredType)
throws DatabaseException
- Description copied from interface:
Executor
- Read methods
- Throws:
DatabaseException
queryForObject
public <T> T queryForObject(SqlStatement sql,
Class<T> requiredType,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
queryForLong
public long queryForLong(SqlStatement sql)
throws DatabaseException
- Throws:
DatabaseException
queryForLong
public long queryForLong(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
queryForInt
public int queryForInt(SqlStatement sql)
throws DatabaseException
- Throws:
DatabaseException
queryForInt
public int queryForInt(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
queryForList
public List queryForList(SqlStatement sql,
Class elementType)
throws DatabaseException
- Throws:
DatabaseException
queryForList
public List queryForList(SqlStatement sql,
Class elementType,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
queryForList
public List<Map<String,?>> queryForList(SqlStatement sql)
throws DatabaseException
- Throws:
DatabaseException
queryForList
public List<Map<String,?>> queryForList(SqlStatement sql,
List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Throws:
DatabaseException
updatesDatabase
public boolean updatesDatabase()
Copyright © 2016 Liquibase.org. All rights reserved.