ch.qos.logback.core.db
Class DBAppenderBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.UnsynchronizedAppenderBase<E>
ch.qos.logback.core.db.DBAppenderBase<E>
- All Implemented Interfaces:
- Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle
public abstract class DBAppenderBase<E>
- extends UnsynchronizedAppenderBase<E>
- Author:
- Ceki Gülcü, Ray DeCampo, Sébastien Pennec
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
connectionSource
protected ConnectionSource connectionSource
cnxSupportsGetGeneratedKeys
protected boolean cnxSupportsGetGeneratedKeys
cnxSupportsBatchUpdates
protected boolean cnxSupportsBatchUpdates
sqlDialect
protected SQLDialect sqlDialect
DBAppenderBase
public DBAppenderBase()
getGeneratedKeysMethod
protected abstract java.lang.reflect.Method getGeneratedKeysMethod()
getInsertSQL
protected abstract java.lang.String getInsertSQL()
start
public void start()
- Specified by:
start in interface LifeCycle- Overrides:
start in class UnsynchronizedAppenderBase<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 UnsynchronizedAppenderBase<E>
subAppend
protected abstract void subAppend(E eventObject,
java.sql.Connection connection,
java.sql.PreparedStatement statement)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
secondarySubAppend
protected abstract void secondarySubAppend(E eventObject,
java.sql.Connection connection,
long eventId)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
selectEventId
protected long selectEventId(java.sql.PreparedStatement insertStatement,
java.sql.Connection connection)
throws java.sql.SQLException,
java.lang.reflect.InvocationTargetException
- Throws:
java.sql.SQLException
java.lang.reflect.InvocationTargetException
stop
public void stop()
- Specified by:
stop in interface LifeCycle- Overrides:
stop in class UnsynchronizedAppenderBase<E>
Copyright © 2005-2011 QOS.ch. All Rights Reserved.