| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Executor | |
| private final Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | comment(String message)
Implements liquibase. Adds a comment to the database. |
| public void | |
| public void | execute(SqlStatement sql, List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public String | Returns: String The Executor nameImplements abstract liquibase. Implements liquibase. Return the name of the Executor |
| protected Writer | |
| public int | Returns: int The Executor priorityImplements abstract liquibase. Implements liquibase. Return the Executor priority |
| private void | |
| private void | |
| public int | queryForInt(SqlStatement
The query to execute sql)Implements liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). |
| public int | queryForInt(SqlStatement
The query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| public List | queryForList(SqlStatement sql, Class<T> elementType)
Implements liquibase.
|
| public List | queryForList(SqlStatement sql, Class<T> elementType, List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public List | queryForList(SqlStatement
the SQL query to execute sql)Implements liquibase. Executes a given SQL statement and returns a List of rows. |
| public List | queryForList(SqlStatement
the SQL query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a list of SqlVisitors to the SQL query, then executes the (possibly modified) SQL query and lastly, returns the list of rows. |
| public long | queryForLong(SqlStatement
The query to execute sql)Implements liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). |
| public long | queryForLong(SqlStatement
The query to execute sql, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| public <T> T | queryForObject(SqlStatement
The query to execute sql, Class<T> requiredType)Implements liquibase. Execute a query that is expected to return a scalar (1 row, 1 column). |
| public <T> T | queryForObject(SqlStatement
The query to execute sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors)Implements liquibase. Applies a number of SqlVisitors to the sql query. |
| public int | |
| public int | update(SqlStatement sql, List<SqlVisitor> sqlVisitors)
Implements liquibase.
|
| public boolean |
| delegatedReadExecutor | back to summary |
|---|---|
| private final Executor delegatedReadExecutor | |
| output | back to summary |
|---|---|
| private final Writer output | |
| LoggingExecutor | back to summary |
|---|---|
| public LoggingExecutor(Executor delegatedExecutor, Writer output, Database database) | |
| comment | back to summary |
|---|---|
| public void comment(String message) throws DatabaseException Implements liquibase. Doc from liquibase. Adds a comment to the database. Currently does nothing but is overridden in the output JDBC template
| |
| execute | back to summary |
|---|---|
| public void execute(SqlStatement sql) throws DatabaseException Implements liquibase.
| |
| execute | back to summary |
|---|---|
| public void execute(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract liquibase. Implements liquibase. Return the name of the Executor | |
| getOutput | back to summary |
|---|---|
| protected Writer getOutput() | |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements abstract liquibase. Implements liquibase. Return the Executor priority
| |
| outputStatement | back to summary |
|---|---|
| private void outputStatement(SqlStatement sql) throws DatabaseException | |
| outputStatement | back to summary |
|---|---|
| private void outputStatement(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| queryForInt | back to summary |
|---|---|
| public int queryForInt(SqlStatement sql) throws DatabaseException Implements liquibase. Doc from liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into an int.
| |
| queryForInt | back to summary |
|---|---|
| public int queryForInt(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column), and that scalar is expected to be an int.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Executes a given SQL statement and returns a List of rows. Each row is represented a a Map the SQL query to execute
a List of [Column name] -> [column value]-mapped rows.
| |
| queryForList | back to summary |
|---|---|
| public List Implements liquibase. Doc from liquibase. Applies a list of SqlVisitors to the SQL query, then executes the (possibly modified) SQL query and lastly,
returns the list of rows. Each row is represented a a Map the SQL query to execute
a List of [Column name] -> [column value]-mapped rows.
| |
| queryForLong | back to summary |
|---|---|
| public long queryForLong(SqlStatement sql) throws DatabaseException Implements liquibase. Doc from liquibase. Executes a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into a long.
| |
| queryForLong | back to summary |
|---|---|
| public long queryForLong(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column), and that scalar is expected to be a long value.
| |
| queryForObject | back to summary |
|---|---|
| public <T> T queryForObject(SqlStatement sql, Class<T> requiredType) throws DatabaseException Implements liquibase. Doc from liquibase. Execute a query that is expected to return a scalar (1 row, 1 column). It is expected that the scalar can be cast into an object of type T.
| |
| queryForObject | back to summary |
|---|---|
| public <T> T queryForObject(SqlStatement sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase. Doc from liquibase. Applies a number of SqlVisitors to the sql query. Then, executes the (possibly modified) query. The query is expected to return a scalar (1 row, 1 column). That scalar is expected to return a single value that can be cast into an object of type T.
| |
| update | back to summary |
|---|---|
| public int update(SqlStatement sql) throws DatabaseException Implements liquibase.
| |
| update | back to summary |
|---|---|
| public int update(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException Implements liquibase.
| |
| updatesDatabase | back to summary |
|---|---|
| public boolean updatesDatabase() Implements liquibase.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. Closes the stream, flushing it first. |
| public void | flush()
Implements abstract java. Implements java. Flushes the stream. |
| public void | write(char[]
Array of characters cbuf, int Offset from which to start writing characters off, int Number of characters to write len)Implements abstract java. Writes a portion of an array of characters. |
| NoopWriter | back to summary |
|---|---|
| private NoopWriter() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes the stream, flushing it first. Once the stream has been closed, further write() or flush() invocations will cause an IOException to be thrown. Closing a previously closed stream has no effect.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements abstract java. Implements java. Doc from java. Flushes the stream. If the stream has saved any characters from the various write() methods in a buffer, write them immediately to their intended destination. Then, if that destination is another character or byte stream, flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams. If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(char[] cbuf, int off, int len) throws IOException Implements abstract java. Doc from java. Writes a portion of an array of characters.
| |