Package net.hydromatic.quidem
Interface Command.Context
-
- Enclosing interface:
- Command
public static interface Command.ContextExecution context for a command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckResult(boolean execute, boolean output, Command.ResultChecker checker)Connectionconnection()voidecho(List<String> lines)Function<String,Object>env()booleanexecute()Quidem.SqlCommandpreviousSqlCommand()ConnectionrefConnection()voidstack(Throwable resultSetException, Writer writer)voidupdate(String sql, boolean execute, boolean output, Command.ResultChecker checker)voiduse(String connectionName)PrintWriterwriter()
-
-
-
Method Detail
-
writer
PrintWriter writer()
-
connection
Connection connection()
-
refConnection
Connection refConnection()
-
checkResult
void checkResult(boolean execute, boolean output, Command.ResultChecker checker) throws Exception- Throws:
Exception
-
update
void update(String sql, boolean execute, boolean output, Command.ResultChecker checker) throws Exception
- Throws:
Exception
-
previousSqlCommand
Quidem.SqlCommand previousSqlCommand()
-
execute
boolean execute()
-
-