org.apache.log4j.jdbcplus
Interface JDBCSqlHandler

All Known Implementing Classes:
SqlHandler

public interface JDBCSqlHandler

This interface has to be implemented to provide dynamic sql-statements and its used in class JDBCLogger.

Since:
1.0
Version:
see jdbcappender.jar/META-INF/MANIFEST.MF for version information
Author:
Thomas Fenner

Method Summary
 String getStatement(LoggingEvent event)
          Get a sql-statement.
 

Method Detail

getStatement

public String getStatement(LoggingEvent event)
                    throws Exception
Get a sql-statement. Return null or empty string if nothing should be logged.

Returns:
The SQL statement. Null if there is nothing to log.
Throws:
Exception - Any Exception


Copyright 2000-2004 Apache Software Foundation.