Package net.hydromatic.quidem
Class Quidem.SqlCommand
java.lang.Object
net.hydromatic.quidem.AbstractCommand
net.hydromatic.quidem.Quidem.SqlCommand
- All Implemented Interfaces:
Command
- Enclosing class:
Quidem
Command that executes a SQL statement.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.hydromatic.quidem.Command
Command.Context, Command.ResultChecker
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns a string describing this command.void
execute
(Command.Context x, boolean execute) Executes this command.
-
Field Details
-
sql
The query string. -
sort
public final boolean sortWhether to sort result set before printing.
-
-
Method Details
-
describe
Description copied from interface:Command
Returns a string describing this command.For example: "OkCommand [sql: select * from emp]" or "SkipCommand".
- Specified by:
describe
in interfaceCommand
- Overrides:
describe
in classAbstractCommand
- Parameters:
x
- Execution context
-
execute
Description copied from interface:Command
Executes this command.- Parameters:
x
- Execution contextexecute
- Whether to execute (false if execution is disabled, say by an 'if')- Throws:
Exception
- if command fails
-