com.github.inspektr.audit.support
Class JdbcAuditTrailManager

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by com.github.inspektr.audit.support.JdbcAuditTrailManager
All Implemented Interfaces:
AuditTrailManager, Cleanable, org.springframework.beans.factory.InitializingBean

public final class JdbcAuditTrailManager
extends org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
implements AuditTrailManager, Cleanable

Implementation of AuditTrailManager to persist the audit trail to the AUDIT_TRAIL table in the Oracle data base.

 CREATE TABLE COM_AUDIT_TRAIL
 (
  AUD_USER      VARCHAR2(100) NOT NULL,
  AUD_CLIENT_IP VARCHAR(15)   NOT NULL,
  AUD_SERVER_IP VARCHAR(15)   NOT NULL,
  AUD_RESOURCE  VARCHAR2(100) NOT NULL,
  AUD_ACTION    VARCHAR2(100) NOT NULL,
  APPLIC_CD     VARCHAR2(5)   NOT NULL,
  AUD_DATE      TIMESTAMP     NOT NULL
 )
 

Since:
1.0
Version:
$Revision: 1.7 $ $Date: 2007/12/03 22:02:41 $
Author:
Scott Battaglia, Marvin S. Addison

Nested Class Summary
protected  class JdbcAuditTrailManager.LoggingTask
           
 
Constructor Summary
JdbcAuditTrailManager(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 
Method Summary
 void clean()
          
 void record(AuditActionContext auditActionContext)
           
 void setCleanupCriteria(WhereClauseMatchCriteria criteria)
           
 void setExecutorService(ExecutorService executorService)
           
 void setTableName(String tableName)
           
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcAuditTrailManager

public JdbcAuditTrailManager(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
Method Detail

record

public void record(AuditActionContext auditActionContext)
Specified by:
record in interface AuditTrailManager

setTableName

public void setTableName(String tableName)

setCleanupCriteria

public void setCleanupCriteria(WhereClauseMatchCriteria criteria)

setExecutorService

public void setExecutorService(ExecutorService executorService)

clean

public void clean()

Specified by:
clean in interface Cleanable


Copyright © 2007-2011 Rutgers, the State University of New Jersey. All Rights Reserved.