liquibase.executor
Class LoggingExecutor
java.lang.Object
liquibase.executor.AbstractExecutor
liquibase.executor.LoggingExecutor
- All Implemented Interfaces:
- Executor
public class LoggingExecutor
- extends AbstractExecutor
- implements Executor
Method Summary |
java.util.Map |
call(CallableSqlStatement csc,
java.util.List declaredParameters,
java.util.List<SqlVisitor> sqlVisitors)
|
void |
comment(java.lang.String message)
Adds a comment to the database. |
void |
execute(SqlStatement sql)
Write methods |
void |
execute(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
|
int |
queryForInt(SqlStatement sql)
|
int |
queryForInt(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
|
java.util.List<java.util.Map> |
queryForList(SqlStatement sql)
|
java.util.List |
queryForList(SqlStatement sql,
java.lang.Class elementType)
|
java.util.List |
queryForList(SqlStatement sql,
java.lang.Class elementType,
java.util.List<SqlVisitor> sqlVisitors)
|
java.util.List<java.util.Map> |
queryForList(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
|
long |
queryForLong(SqlStatement sql)
|
long |
queryForLong(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
|
java.lang.Object |
queryForObject(SqlStatement sql,
java.lang.Class requiredType)
Read methods |
java.lang.Object |
queryForObject(SqlStatement sql,
java.lang.Class requiredType,
java.util.List<SqlVisitor> sqlVisitors)
|
int |
update(SqlStatement sql)
|
int |
update(SqlStatement sql,
java.util.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,
java.io.Writer output,
Database database)
execute
public void execute(SqlStatement sql)
throws DatabaseException
- Description copied from interface:
Executor
- Write methods
- Specified by:
execute
in interface Executor
- Throws:
DatabaseException
update
public int update(SqlStatement sql)
throws DatabaseException
- Specified by:
update
in interface Executor
- Throws:
DatabaseException
execute
public void execute(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
execute
in interface Executor
- Throws:
DatabaseException
update
public int update(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
update
in interface Executor
- Throws:
DatabaseException
call
public java.util.Map call(CallableSqlStatement csc,
java.util.List declaredParameters,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
call
in interface Executor
- Throws:
DatabaseException
comment
public void comment(java.lang.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
- Specified by:
comment
in interface Executor
- Throws:
DatabaseException
queryForObject
public java.lang.Object queryForObject(SqlStatement sql,
java.lang.Class requiredType)
throws DatabaseException
- Description copied from interface:
Executor
- Read methods
- Specified by:
queryForObject
in interface Executor
- Throws:
DatabaseException
queryForObject
public java.lang.Object queryForObject(SqlStatement sql,
java.lang.Class requiredType,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
queryForObject
in interface Executor
- Throws:
DatabaseException
queryForLong
public long queryForLong(SqlStatement sql)
throws DatabaseException
- Specified by:
queryForLong
in interface Executor
- Throws:
DatabaseException
queryForLong
public long queryForLong(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
queryForLong
in interface Executor
- Throws:
DatabaseException
queryForInt
public int queryForInt(SqlStatement sql)
throws DatabaseException
- Specified by:
queryForInt
in interface Executor
- Throws:
DatabaseException
queryForInt
public int queryForInt(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
queryForInt
in interface Executor
- Throws:
DatabaseException
queryForList
public java.util.List queryForList(SqlStatement sql,
java.lang.Class elementType)
throws DatabaseException
- Specified by:
queryForList
in interface Executor
- Throws:
DatabaseException
queryForList
public java.util.List queryForList(SqlStatement sql,
java.lang.Class elementType,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
queryForList
in interface Executor
- Throws:
DatabaseException
queryForList
public java.util.List<java.util.Map> queryForList(SqlStatement sql)
throws DatabaseException
- Specified by:
queryForList
in interface Executor
- Throws:
DatabaseException
queryForList
public java.util.List<java.util.Map> queryForList(SqlStatement sql,
java.util.List<SqlVisitor> sqlVisitors)
throws DatabaseException
- Specified by:
queryForList
in interface Executor
- Throws:
DatabaseException
updatesDatabase
public boolean updatesDatabase()
- Specified by:
updatesDatabase
in interface Executor
Copyright © 2010 Liquibase.org. All Rights Reserved.