| org.apache.log.output.db.AbstractJDBCTarget org.apache.log.output.db.DefaultJDBCTarget
All known Subclasses: org.apache.log.output.db.NormalizedJDBCTarget,
DefaultJDBCTarget | public DefaultJDBCTarget(DataSource dataSource, String table, ColumnInfo[] columns)(Code) | | Creation of a new JDBC logging target.
Parameters: dataSource - the JDBC datasource Parameters: table - the table Parameters: columns - a ColumnInfo array |
closeConnection | protected synchronized void closeConnection()(Code) | | Close connection to underlying database.
|
getColumn | final protected ColumnInfo getColumn(int index)(Code) | | Return the column info for an supplied index.
Parameters: index - the index the column info |
getStatementSQL | protected String getStatementSQL()(Code) | | Return the SQL insert statement.
the statement |
getTable | final protected String getTable()(Code) | | Return the underlying table
the table name |
isStale | protected boolean isStale()(Code) | | Test if the target is stale.
TRUE if the target is stale else FALSE |
openConnection | protected synchronized void openConnection()(Code) | | Open connection to underlying database.
|
output | protected synchronized void output(LogEvent event)(Code) | | Output a log event to DB.
This must be implemented by subclasses.
Parameters: event - the log event. |
|
|