ErrorAware, LogTarget, Closeablepublic 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, opengetErrorHandler, isOpen, processEvent, setErrorHandlercloseConnection, getColumn, getStatementSQL, getTable, isStale, openConnection, outputprivate 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 DefaultJDBCTargetstatement - 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.SQLExceptionCopyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.