Commandpublic static class Quidem.SqlCommand extends AbstractCommand
Command.Context, Command.ResultChecker| Modifier and Type | Field | Description |
|---|---|---|
protected com.google.common.collect.ImmutableList<String> |
lines |
|
boolean |
sort |
Whether to sort result set before printing.
|
String |
sql |
The query string.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
SqlCommand(List<String> lines,
String sql,
boolean sort) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
describe(Command.Context x) |
Returns a string describing this command.
|
void |
execute(Command.Context x,
boolean execute) |
Executes this command.
|
commandNamepublic final String sql
public final boolean sort
protected final com.google.common.collect.ImmutableList<String> lines
public String describe(Command.Context x)
CommandFor example: "OkCommand [sql: select * from emp]" or "SkipCommand".
describe in interface Commanddescribe in class AbstractCommandx - Execution contextpublic void execute(Command.Context x, boolean execute) throws Exception
Commandx - Execution contextexecute - Whether to execute (false if execution is disabled, say by
an 'if')Exception - if command failsCopyright © 2014–2018 Julian Hyde. All rights reserved.