@FunctionalInterface public interface AppendEventsStatementBuilder
JdbcEventStorageEngine.appendEvents(List,
Serializer)
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
build(Connection connection,
EventSchema schema,
Class<?> dataType,
List<? extends EventMessage<?>> events,
Serializer serializer,
TimestampWriter timestampWriter)
Build a statement to be used at
JdbcEventStorageEngine.appendEvents(List, Serializer) |
PreparedStatement build(Connection connection, EventSchema schema, Class<?> dataType, List<? extends EventMessage<?>> events, Serializer serializer, TimestampWriter timestampWriter) throws SQLException
JdbcEventStorageEngine.appendEvents(List, Serializer)
connection
- The connection to the database.schema
- The EventSchema to be used.dataType
- The serialized type of the payload and metadata.events
- The events to be added.serializer
- The serializer for the payload and metadata.timestampWriter
- Writer responsible for writing timestamp in the correct format for the given database.PreparedStatement
.SQLException
- when an exception occurs while creating the prepared statement.Copyright © 2010–2022. All rights reserved.