Writerpublic final class JdbcWriter extends AbstractWriter
| Constructor | Description |
|---|---|
JdbcWriter() |
|
JdbcWriter(Map<String,String> properties) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the writer.
|
void |
flush() |
Outputs buffered log entries immediately.
|
Collection<LogEntryValue> |
getRequiredLogEntryValues() |
Returns all log entry values that are required for outputting a log entry.
|
void |
write(LogEntry logEntry) |
Outputs a given log entry.
|
getBooleanValue, getStringValue, getStringValuepublic JdbcWriter()
throws NamingException,
SQLException
NamingException - Data source cannot be foundSQLException - Database connection cannot be establishedpublic JdbcWriter(Map<String,String> properties) throws NamingException, SQLException
properties - Configuration for writerNamingException - Data source cannot be foundSQLException - Database connection cannot be establishedpublic Collection<LogEntryValue> getRequiredLogEntryValues()
WriterLogEntry objectspublic void write(LogEntry logEntry) throws SQLException
WriterlogEntry - Log entry to outputSQLExceptionpublic void flush()
throws SQLException
WriterSQLExceptionpublic void close()
throws SQLException
WriterSQLExceptionCopyright © 2026. All rights reserved.