Interface DeadLetterTableFactory
- All Known Implementing Classes:
GenericDeadLetterTableFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface to create a JDBC-specific
DeadLetter entry
table and its indices.- Since:
- 4.8.0
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptioncreateTableStatement(Connection connection, DeadLetterSchema schema) Creates aStatementto use for construction of aDeadLetterentry table and its indices.
-
Method Details
-
createTableStatement
Creates aStatementto use for construction of aDeadLetterentry table and its indices.The returned
Statementtypically contains several SQL statements and hence the invoker is inclined to execute theStatementas a batch by invokingStatement.executeBatch(). Furthermore, it is expected that this statement at least constructs the required uniqueness constraints.- Parameters:
connection- The connection to create theStatementwith.schema- The schema defining the table and column names.- Returns:
- A
statementto create the table and its indices with, ready to beexecuted. - Throws:
SQLException- when an exception occurs while creating theStatement.
-