public class DBAppender extends DBAppenderBase<ILoggingEvent>
| Modifier and Type | Field and Description |
|---|---|
protected static Method |
GET_GENERATED_KEYS_METHOD |
protected String |
insertExceptionSQL |
protected String |
insertPropertiesSQL |
protected String |
insertSQL |
cnxSupportsBatchUpdates, cnxSupportsGetGeneratedKeys, connectionSource, sqlDialectname, startedcontext| Constructor and Description |
|---|
DBAppender() |
| Modifier and Type | Method and Description |
|---|---|
protected Method |
getGeneratedKeysMethod() |
protected String |
getInsertSQL() |
protected void |
insertProperties(Map<String,String> mergedMap,
Connection connection,
long eventId) |
protected void |
insertThrowable(IThrowableProxy tp,
Connection connection,
long eventId) |
protected void |
secondarySubAppend(ILoggingEvent event,
Connection connection,
long eventId) |
void |
setDbNameResolver(DBNameResolver dbNameResolver) |
void |
start() |
protected void |
subAppend(ILoggingEvent event,
Connection connection,
PreparedStatement insertStatement) |
append, getConnectionSource, selectEventId, setConnectionSource, stopaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toStringaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected String insertPropertiesSQL
protected String insertExceptionSQL
protected String insertSQL
protected static final Method GET_GENERATED_KEYS_METHOD
public void setDbNameResolver(DBNameResolver dbNameResolver)
public void start()
start in interface LifeCyclestart in class DBAppenderBase<ILoggingEvent>protected void subAppend(ILoggingEvent event, Connection connection, PreparedStatement insertStatement) throws Throwable
subAppend in class DBAppenderBase<ILoggingEvent>Throwableprotected void secondarySubAppend(ILoggingEvent event, Connection connection, long eventId) throws Throwable
secondarySubAppend in class DBAppenderBase<ILoggingEvent>Throwableprotected Method getGeneratedKeysMethod()
getGeneratedKeysMethod in class DBAppenderBase<ILoggingEvent>protected String getInsertSQL()
getInsertSQL in class DBAppenderBase<ILoggingEvent>protected void insertProperties(Map<String,String> mergedMap, Connection connection, long eventId) throws SQLException
SQLExceptionprotected void insertThrowable(IThrowableProxy tp, Connection connection, long eventId) throws SQLException
SQLExceptionCopyright © 2005–2015 QOS.ch. All rights reserved.