@FunctionalInterface public interface TimestampWriter
PreparedStatement
during updates of the database.
Used in AppendEventsStatementBuilder
and AppendSnapshotStatementBuilder
.Modifier and Type | Method and Description |
---|---|
void |
writeTimestamp(PreparedStatement preparedStatement,
int position,
Instant timestamp)
Write a timestamp from a
Instant to a data value suitable for the database scheme. |
void writeTimestamp(PreparedStatement preparedStatement, int position, Instant timestamp) throws SQLException
Instant
to a data value suitable for the database scheme.preparedStatement
- the statement to updateposition
- the position of the timestamp parameter in the statementtimestamp
- Instant
to convertSQLException
- if modification of the statement failsCopyright © 2010–2024. All rights reserved.