public class LoggingExecutor extends AbstractExecutor implements Executor
database
Constructor and Description |
---|
LoggingExecutor(Executor delegatedExecutor,
Writer output,
Database database) |
applyVisitors, setDatabase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setDatabase
protected Writer getOutput()
public void execute(Change change) throws DatabaseException
Executor
execute
in interface Executor
DatabaseException
public void execute(Change change, List<SqlVisitor> sqlVisitors) throws DatabaseException
execute
in interface Executor
DatabaseException
public void execute(SqlStatement sql) throws DatabaseException
execute
in interface Executor
DatabaseException
public int update(SqlStatement sql) throws DatabaseException
update
in interface Executor
DatabaseException
public void execute(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException
execute
in interface Executor
DatabaseException
public int update(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException
update
in interface Executor
DatabaseException
public void comment(String message) throws DatabaseException
Executor
comment
in interface Executor
DatabaseException
public <T> T queryForObject(SqlStatement sql, Class<T> requiredType) throws DatabaseException
Executor
queryForObject
in interface Executor
DatabaseException
public <T> T queryForObject(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) throws DatabaseException
queryForObject
in interface Executor
DatabaseException
public long queryForLong(SqlStatement sql) throws DatabaseException
queryForLong
in interface Executor
DatabaseException
public long queryForLong(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException
queryForLong
in interface Executor
DatabaseException
public int queryForInt(SqlStatement sql) throws DatabaseException
queryForInt
in interface Executor
DatabaseException
public int queryForInt(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException
queryForInt
in interface Executor
DatabaseException
public List queryForList(SqlStatement sql, Class elementType) throws DatabaseException
queryForList
in interface Executor
DatabaseException
public List queryForList(SqlStatement sql, Class elementType, List<SqlVisitor> sqlVisitors) throws DatabaseException
queryForList
in interface Executor
DatabaseException
public List<Map<String,?>> queryForList(SqlStatement sql) throws DatabaseException
queryForList
in interface Executor
DatabaseException
public List<Map<String,?>> queryForList(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException
queryForList
in interface Executor
DatabaseException
public boolean updatesDatabase()
updatesDatabase
in interface Executor
Copyright © 2014 Liquibase.org. All rights reserved.