| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public int | |
| public void | modifyChangeSet(ChangeSet
The changeset to operate on changeSet)Allow this Executor to make any needed changes to the changeset |
| public int | Returns: An integer, if successfulThe query to execute sql)Executes a query that is expected to return a scalar (1 row, 1 column). |
| public int | Returns: An integer, if successfulThe query to execute sql, List<SqlVisitor> sqlVisitors)Applies a number of SqlVisitors to the sql query. |
| public List | |
| public List | |
| public List | Returns: a List of [Column name] -> [column value]-mapped rows.the SQL query to execute sql)Executes a given SQL statement and returns a List of rows. |
| public List | Returns: a List of [Column name] -> [column value]-mapped rows.the SQL query to execute sql, List<SqlVisitor> sqlVisitors)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 | Returns: A long value, if successfulThe query to execute sql)Executes a query that is expected to return a scalar (1 row, 1 column). |
| public long | Returns: A long value, if successfulThe query to execute sql, List<SqlVisitor> sqlVisitors)Applies a number of SqlVisitors to the sql query. |
| public <T> T | Returns: An object of type T, if successful. May also return null if no object is found.The query to execute sql, Class<T> requiredType)Execute a query that is expected to return a scalar (1 row, 1 column). |
| public <T> T | Returns: An object of type T, if successful. May also return null if no object is found.The query to execute sql, Class<T> requiredType, List<SqlVisitor> sqlVisitors)Applies a number of SqlVisitors to the sql query. |
| public void | setDatabase(Database
The database database)Configures the Executor for the Database to run statements/queries against. |
| public void | setResourceAccessor(ResourceAccessor resourceAccessor)
Set a ResourceAccessor on this Executor to be used in file access |
| public default boolean | |
| public int | |
| public int | |
| public boolean | |
| public ValidationErrors |
| comment | back to summary |
|---|---|
| public void comment(String message) throws DatabaseException Adds a comment to the database. Currently does nothing but is overridden in the output JDBC template | |
| execute | back to summary |
|---|---|
| public void execute(Change change) throws DatabaseException Write methods | |
| execute | back to summary |
|---|---|
| public void execute(Change change, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| execute | back to summary |
|---|---|
| public void execute(SqlStatement sql) throws DatabaseException | |
| execute | back to summary |
|---|---|
| public void execute(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the Executor
| |
| getPriority | back to summary |
|---|---|
| public int getPriority() Return the Executor priority
| |
| modifyChangeSet | back to summary |
|---|---|
| public void modifyChangeSet(ChangeSet changeSet) Allow this Executor to make any needed changes to the changeset
| |
| queryForInt | back to summary |
|---|---|
| public int queryForInt(SqlStatement sql) throws DatabaseException 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 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 | |
| queryForList | back to summary |
|---|---|
| public List | |
| queryForList | back to summary |
|---|---|
| public List 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 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 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 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 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 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.
| |
| setDatabase | back to summary |
|---|---|
| public void setDatabase(Database database) Configures the Executor for the Database to run statements/queries against.
| |
| setResourceAccessor | back to summary |
|---|---|
| public void setResourceAccessor(ResourceAccessor resourceAccessor) Set a ResourceAccessor on this Executor to be used in file access | |
| supports | back to summary |
|---|---|
| public default boolean supports(final Database database) Default implementation for compatibility with a Database. Requires default implementation in order to provide backward compatibility. Method is used when ExecutorService is looking by a Executor implementation for a Database. Can be overridden in Executor implementations with a higher priority to check against a Database.
| |
| update | back to summary |
|---|---|
| public int update(SqlStatement sql) throws DatabaseException | |
| update | back to summary |
|---|---|
| public int update(SqlStatement sql, List<SqlVisitor> sqlVisitors) throws DatabaseException | |
| updatesDatabase | back to summary |
|---|---|
| public boolean updatesDatabase() | |
| validate | back to summary |
|---|---|
| public ValidationErrors validate(ChangeSet changeSet) Validate if the changeset can be executed by this Executor If the ChangeSet can be executed return an empty ValidationErrors object otherwise return the errors
| |