org.apache.log.output.db
public class NormalizedJDBCTarget extends DefaultJDBCTarget
Parts based on JDBC logger from prottomatter by Nate Sammons
Modifier and Type | Field and Description |
---|---|
private HashMap |
m_categoryIDs |
private HashMap |
m_priorityIDs |
Constructor and Description |
---|
NormalizedJDBCTarget(DataSource dataSource,
String table,
ColumnInfo[] columns) |
Modifier and Type | Method and Description |
---|---|
protected int |
getID(String tableName,
HashMap idMap,
String instance) |
protected void |
specifyColumn(PreparedStatement statement,
int index,
LogEvent event)
Adds a single object into statement.
|
closeConnection, getColumn, getStatementSQL, getTable, isStale, openConnection, output
checkConnection, close, doProcessEvent, getConnection, open
getErrorHandler, isOpen, processEvent, setErrorHandler
private HashMap m_categoryIDs
private HashMap m_priorityIDs
public NormalizedJDBCTarget(DataSource dataSource, String table, ColumnInfo[] columns)
protected void specifyColumn(PreparedStatement statement, int index, LogEvent event) throws SQLException
specifyColumn
in class DefaultJDBCTarget
statement
- the prepard statementindex
- the indexevent
- the log eventSQLException
- if an SQL related error occursprotected int getID(String tableName, HashMap idMap, String instance) throws SQLException
SQLException
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.