@FunctionalInterface public interface DeleteSnapshotsStatementBuilder
JdbcEventStorageEngine.storeSnapshot(DomainEventMessage,
Serializer)
Modifier and Type | Method and Description |
---|---|
PreparedStatement |
build(Connection connection,
EventSchema schema,
String aggregateIdentifier,
long sequenceNumber)
Creates a statement to be used at
JdbcEventStorageEngine.storeSnapshot(DomainEventMessage, Serializer) |
PreparedStatement build(Connection connection, EventSchema schema, String aggregateIdentifier, long sequenceNumber) throws SQLException
JdbcEventStorageEngine.storeSnapshot(DomainEventMessage, Serializer)
connection
- The connection to the database.schema
- The EventSchema to be usedaggregateIdentifier
- The identifier of the aggregate taken from the snapshot.sequenceNumber
- The sequence number taken from the snapshot.PreparedStatement
.SQLException
- when an exception occurs while creating the prepared statement.Copyright © 2010–2024. All rights reserved.