org.apache.log4j.jdbcplus
Interface JDBCColumnHandler
- All Known Implementing Classes:
- MyColumnHandler
- public interface JDBCColumnHandler
This interface has to be implemented to provide DYNAMIC-columns with content
and its used in class JDBCLogger.
- Since:
- 1.0
- Version:
- see jdbcappender.jar/META-INF/MANIFEST.MF for version information
- Author:
- Thomas Fenner,
Danko Mannhaupt
getObject
public Object getObject(LoggingEvent event,
String table,
String column)
throws Exception
- Defines the Object that is to be logged for this column.
Make sure the result is accepted as input type for your JDBC driver.
For Firebird, this includes for example:
BigDecimal, Blob, Boolean, byte[], Date, Double, Float, Integer, Long, Short, String,
Time, Timestamp.
- Parameters:
event
- LoggingEvent with message and other detailstable
- table namecolumn
- column name
- Returns:
- The Object to log. Type must match allowed types of JDBC driver (see above).
- Throws:
Exception
- may throw any Exception
Copyright 2000-2004 Apache Software Foundation.