Index
All Classes and Interfaces|All Packages
A
- AbstractCommand - Class in net.hydromatic.quidem
-
Base class for implementations of Command.
- AbstractCommand() - Constructor for class net.hydromatic.quidem.AbstractCommand
B
- build() - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
-
Returns a
Quidem.Config
.
C
- chain(Iterable<? extends Quidem.ConnectionFactory>) - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that tries each of a list of factories in turn.
- chain(Quidem.ConnectionFactory...) - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that tries each of an array of factories in turn.
- checkResult(boolean, boolean, Command.ResultChecker) - Method in interface net.hydromatic.quidem.Command.Context
- checkResultSet(Command.Context, Throwable) - Method in interface net.hydromatic.quidem.Command.ResultChecker
- close() - Method in interface net.hydromatic.quidem.record.Recorder
- Command - Interface in net.hydromatic.quidem
-
Command.
- Command.Context - Interface in net.hydromatic.quidem
-
Execution context for a command.
- Command.ResultChecker - Interface in net.hydromatic.quidem
- commandHandler() - Method in interface net.hydromatic.quidem.Quidem.Config
- CommandHandler - Interface in net.hydromatic.quidem
-
Allows custom commands to be specified at run-time.
- config() - Static method in class net.hydromatic.quidem.record.Recorders
-
Creates an immutable empty configuration.
- Config - Interface in net.hydromatic.quidem.record
-
Configuration for recordings.
- configBuilder() - Static method in class net.hydromatic.quidem.Quidem
-
Creates a
Quidem.ConfigBuilder
with the default settings. - connect(String, boolean) - Method in interface net.hydromatic.quidem.Quidem.ConnectionFactory
-
Creates a connection to the named database or reference database.
- connection() - Method in interface net.hydromatic.quidem.Command.Context
- ConnectionFactories - Class in net.hydromatic.quidem
-
Utilities for
Quidem.ConnectionFactory
. - connectionFactory() - Method in interface net.hydromatic.quidem.Quidem.Config
- create(Config) - Static method in class net.hydromatic.quidem.record.Recorders
-
Creates a Recorder.
D
- DEBUG - Static variable in class net.hydromatic.quidem.Quidem
- describe(Command.Context) - Method in class net.hydromatic.quidem.AbstractCommand
- describe(Command.Context) - Method in interface net.hydromatic.quidem.Command
-
Returns a string describing this command.
- describe(Command.Context) - Method in class net.hydromatic.quidem.Quidem.SqlCommand
E
- echo(List<String>) - Method in interface net.hydromatic.quidem.Command.Context
- empty() - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that returns
null
for any requested database. - EMPTY_COMMAND_HANDLER - Static variable in class net.hydromatic.quidem.Quidem
-
A command handler that defines no commands.
- EMPTY_CONNECTION_FACTORY - Static variable in class net.hydromatic.quidem.Quidem
-
The empty environment.
- EMPTY_ENV - Static variable in class net.hydromatic.quidem.Quidem
-
The empty environment.
- EMPTY_PROPERTY_HANDLER - Static variable in class net.hydromatic.quidem.Quidem
-
A property handler that does nothing.
- env() - Method in interface net.hydromatic.quidem.Command.Context
- env() - Method in interface net.hydromatic.quidem.Quidem.Config
- execute() - Method in interface net.hydromatic.quidem.Command.Context
- execute() - Method in class net.hydromatic.quidem.Quidem
-
Executes the commands from the input, writing to the output, then closing both input and output.
- execute(Command.Context, boolean) - Method in interface net.hydromatic.quidem.Command
-
Executes this command.
- execute(Command.Context, boolean) - Method in class net.hydromatic.quidem.Quidem.SqlCommand
- executeQuery(String, String, String, Consumer<ResultSet>) - Method in interface net.hydromatic.quidem.record.Recorder
-
Executes a query and calls
consumer
with theResultSet
containing the results of the query.
G
- getOutput(Command.Context) - Method in interface net.hydromatic.quidem.Command.ResultChecker
I
- isProbablyDeterministic(String) - Method in class net.hydromatic.quidem.Quidem
-
Returns whether a SQL query is likely to produce results always in the same order.
J
- JdbcUtils - Class in net.hydromatic.quidem.record
-
JDBC utilities.
M
- main(String[]) - Static method in class net.hydromatic.quidem.Quidem
-
Entry point from the operating system command line.
- merge(Command) - Method in interface net.hydromatic.quidem.Command
-
Merges this command with the previous command.
- Mode - Enum in net.hydromatic.quidem.record
-
Recording mode.
N
- net.hydromatic.quidem - package net.hydromatic.quidem
-
Idempotent query script execution.
- net.hydromatic.quidem.record - package net.hydromatic.quidem.record
-
Record databases' responses to queries and play them back when the database is not around.
O
- onSet(String, Object) - Method in interface net.hydromatic.quidem.Quidem.PropertyHandler
P
- parse(String[], String) - Static method in class net.hydromatic.quidem.record.JdbcUtils
-
Parses a line containing comma-separated values into an array of strings.
- parseCommand(List<String>, List<String>, String) - Method in interface net.hydromatic.quidem.CommandHandler
- PASS_THROUGH - Enum constant in enum net.hydromatic.quidem.record.Mode
-
Does not read or write a recording file.
- PLAY - Enum constant in enum net.hydromatic.quidem.record.Mode
-
Requires that queries are in the recording.
- previousSqlCommand() - Method in interface net.hydromatic.quidem.Command.Context
- propertyHandler() - Method in interface net.hydromatic.quidem.Quidem.Config
Q
- Quidem - Class in net.hydromatic.quidem
-
Runs a SQL script.
- Quidem(Reader, Writer) - Constructor for class net.hydromatic.quidem.Quidem
-
Creates a Quidem interpreter with an empty environment and empty connection factory.
- Quidem(Quidem.Config) - Constructor for class net.hydromatic.quidem.Quidem
-
Creates a Quidem interpreter.
- Quidem.Config - Interface in net.hydromatic.quidem
-
The information needed to start Quidem.
- Quidem.ConfigBuilder - Class in net.hydromatic.quidem
-
Builds a
Quidem.Config
. - Quidem.ConnectionFactory - Interface in net.hydromatic.quidem
-
Creates a connection for a given name.
- Quidem.PropertyHandler - Interface in net.hydromatic.quidem
-
Called whenever a property's value is changed.
- Quidem.SqlCommand - Class in net.hydromatic.quidem
-
Command that executes a SQL statement.
R
- reader() - Method in interface net.hydromatic.quidem.Quidem.Config
- RECORD - Enum constant in enum net.hydromatic.quidem.record.Mode
-
Executes queries on the DB and writes them to the file.
- Recorder - Interface in net.hydromatic.quidem.record
-
Object that can execute queries and return their response.
- Recorders - Class in net.hydromatic.quidem.record
-
Utilities for recording and playback.
- refConnection() - Method in interface net.hydromatic.quidem.Command.Context
S
- simple(String, String, String, String) - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that uses simple JDBC credentials.
- simple(String, String, String, String, Predicate<Connection>, Consumer<Connection>) - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that uses simple JDBC credentials and verifies/loads connections.
- sort - Variable in class net.hydromatic.quidem.Quidem.SqlCommand
-
Whether to sort result set before printing.
- sql - Variable in class net.hydromatic.quidem.Quidem.SqlCommand
-
The query string.
- stack(Throwable, Writer) - Method in interface net.hydromatic.quidem.Command.Context
- stackLimit() - Method in interface net.hydromatic.quidem.Quidem.Config
-
Returns the maximum number of characters of an error stack to be printed.
- supplier(String) - Method in interface net.hydromatic.quidem.Quidem.ConnectionFactory
-
Returns a supplier of connections to a particular database.
U
- unsupported() - Static method in class net.hydromatic.quidem.ConnectionFactories
-
Creates a connection factory that always throws.
- update(String, boolean, boolean, Command.ResultChecker) - Method in interface net.hydromatic.quidem.Command.Context
- use(String) - Method in interface net.hydromatic.quidem.Command.Context
V
- valueOf(String) - Static method in enum net.hydromatic.quidem.record.Mode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum net.hydromatic.quidem.record.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withCommandHandler(CommandHandler) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
- withConnectionFactory(Quidem.ConnectionFactory) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
- withConnectionFactory(Quidem.ConnectionFactory) - Method in interface net.hydromatic.quidem.record.Config
- withEnv(Function<String, Object>) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
-
Sets
Quidem.Config.env()
. - withFile(File) - Method in interface net.hydromatic.quidem.record.Config
- withMode(Mode) - Method in interface net.hydromatic.quidem.record.Config
- withPropertyHandler(Quidem.PropertyHandler) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
- withReader(Reader) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
-
Sets
Quidem.Config.reader()
. - withStackLimit(int) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
- withWriter(Writer) - Method in class net.hydromatic.quidem.Quidem.ConfigBuilder
-
Sets
Quidem.Config.writer()
. - write(StringBuilder, ResultSet) - Static method in class net.hydromatic.quidem.record.JdbcUtils
-
Writes a ResultSet to a builder.
- writer() - Method in interface net.hydromatic.quidem.Command.Context
- writer() - Method in interface net.hydromatic.quidem.Quidem.Config
All Classes and Interfaces|All Packages