ch.qos.logback.core.db
Class DBAppenderBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<E>
ch.qos.logback.core.db.DBAppenderBase<E>
- All Implemented Interfaces:
- Appender<E>, ContextAware, FilterAttachable, LifeCycle
- Direct Known Subclasses:
- DBAppender, DBAppender
public abstract class DBAppenderBase<E>
- extends AppenderBase<E>
- Author:
- Ceki Gülcü, Ray DeCampo, Sébastien Pennec
Methods inherited from class ch.qos.logback.core.AppenderBase |
addFilter, clearAllFilters, doAppend, getFilterChainDecision, getFirstFilter, getLayout, getName, isStarted, setLayout, setName, toString |
connectionSource
protected ConnectionSource connectionSource
cnxSupportsGetGeneratedKeys
protected boolean cnxSupportsGetGeneratedKeys
cnxSupportsBatchUpdates
protected boolean cnxSupportsBatchUpdates
sqlDialect
protected SQLDialect sqlDialect
DBAppenderBase
public DBAppenderBase()
getGeneratedKeysMethod
protected abstract Method getGeneratedKeysMethod()
getInsertSQL
protected abstract String getInsertSQL()
start
public void start()
- Specified by:
start
in interface LifeCycle
- Overrides:
start
in class AppenderBase<E>
getConnectionSource
public ConnectionSource getConnectionSource()
- Returns:
- Returns the connectionSource.
setConnectionSource
public void setConnectionSource(ConnectionSource connectionSource)
- Parameters:
connectionSource
- The connectionSource to set.
append
public void append(E eventObject)
- Specified by:
append
in class AppenderBase<E>
subAppend
protected abstract void subAppend(Object eventObject,
Connection connection,
PreparedStatement statement)
throws Throwable
- Throws:
Throwable
getEventId
protected int getEventId(PreparedStatement insertStatement,
Connection connection)
throws SQLException,
InvocationTargetException
- Throws:
SQLException
InvocationTargetException
stop
public void stop()
- Specified by:
stop
in interface LifeCycle
- Overrides:
stop
in class AppenderBase<E>
Copyright © 2005-2008 QOS.ch. All Rights Reserved.