public interface Token
Modifier and Type | Method and Description |
---|---|
void |
apply(LogEntry logEntry,
PreparedStatement statement,
int index)
Adds the value of this token to a prepared SQL statement.
|
Collection<LogEntryValue> |
getRequiredLogEntryValues()
Gets all log entry values that are required for outputting a log entry.
|
void |
render(LogEntry logEntry,
StringBuilder builder)
Renders a log entry.
|
Collection<LogEntryValue> getRequiredLogEntryValues()
void render(LogEntry logEntry, StringBuilder builder)
logEntry
- Log entry to renderbuilder
- Output will be appended to this string buildervoid apply(LogEntry logEntry, PreparedStatement statement, int index) throws SQLException
logEntry
- Log entry that contains the source value(s)statement
- Target prepared SQL statementindex
- Index for valueSQLException
- Failed to add value to prepared SQL statementCopyright © 2020. All rights reserved.