Interface PostAction
- All Superinterfaces:
SecondaryAction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An action to be performed after a PrimaryOperation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidperformPostAction(StatementAccess jdbcStatementAccess, Connection jdbcConnection, ExecutionContext executionContext, @Nullable LoadedValuesCollector loadedValuesCollector) Perform the action.default booleanShould this post-action always be run even if the primary operation fails?
-
Method Details
-
performPostAction
void performPostAction(StatementAccess jdbcStatementAccess, Connection jdbcConnection, ExecutionContext executionContext, @Nullable LoadedValuesCollector loadedValuesCollector) Perform the action. Generally the action should use the passedjdbcStatementAccessto interact with the database, although thejdbcConnectioncan be used to create specialized statements, access the database metadata, etc.- Parameters:
jdbcStatementAccess- Access to a JDBC Statement object which may be used to perform the action.jdbcConnection- The JDBC Connection.executionContext- Access to contextual information useful while executing.loadedValuesCollector- Access to the collector of values loaded as part of the primary operation. This is useful for post-actions that need to know what was loaded in order to perform their work.
-
shouldRunAfterFail
default boolean shouldRunAfterFail()Should this post-action always be run even if the primary operation fails?
-