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