toolbox.services.util.audit
Class AuditServiceDbImpl

Package class diagram package AuditServiceDbImpl
java.lang.Object
  extended by toolbox.services.BaseService
      extended by toolbox.services.dao.DaoService
          extended by toolbox.services.util.audit.AuditServiceDbImpl
All Implemented Interfaces:
Service, AuditService

public class AuditServiceDbImpl
extends DaoService
implements AuditService

An AuditService implementation that stores and retrieves AuditEntries using a RDBMS.

The schema required by this implemention is defined in the share/sql/audit_table.sql file.


Constructor Summary
AuditServiceDbImpl()
          Default constructor.
 
Method Summary
 void addEntry(AuditEntry entry)
          Add an AuditEntry to the persistent store.
 java.util.List findEntries(AuditEntryTO entryTO)
          Find AuditEntry instances.
 
Methods inherited from class toolbox.services.dao.DaoService
checkConstraint, create, destroy, doCustomQuery, doCustomQuery, getDaoManager, getDaoWorker, getNextSequenceValue, insertDaoBean, insertDaoBean, updateDaoBean, updateDaoBean
 
Methods inherited from class toolbox.services.BaseService
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditServiceDbImpl

public AuditServiceDbImpl()
Default constructor.

Method Detail

addEntry

public void addEntry(AuditEntry entry)
              throws ServiceException
Add an AuditEntry to the persistent store.

Specified by:
addEntry in interface AuditService
Parameters:
entry - The AuditEntry to add.
Throws:
ServiceException - if the entry cannot be added.

findEntries

public java.util.List findEntries(AuditEntryTO entryTO)
                           throws ServiceException
Find AuditEntry instances.

Specified by:
findEntries in interface AuditService
Parameters:
entryTO - AuditEntryTO instance containing query parameters.
Returns:
List of AuditEntry instances.
Throws:
ServiceException - if the entries cannot be retreived.