com.onewebsql.dao.monitors
Class PrintStreamDaoMonitor

java.lang.Object
  extended by com.onewebsql.dao.monitors.PrintStreamDaoMonitor
All Implemented Interfaces:
DaoMonitor

public class PrintStreamDaoMonitor
extends Object
implements DaoMonitor

DAO monitor which logs information to the specified PrintStream object.


Constructor Summary
PrintStreamDaoMonitor(PrintStream printStream)
          Constructor.
 
Method Summary
 void delete(DAO<?> dao, String deleteStatement, List<Value> parameters)
          Callback of DELETE statement.
 void insert(DAO<?> dao, String insertStatement, List<Value> parameters)
          Callback of INSERT statement.
 void selectObjectList(DAO<?> dao, String queryString, List<Value> parameters)
          Callback of SELECT query.
 void update(DAO<?> dao, String updateStatement, List<Value> parameters)
          Callback of UPDATE statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamDaoMonitor

public PrintStreamDaoMonitor(PrintStream printStream)
Constructor. This monitor logs infomation to the specified PrintStream object

Parameters:
printStream - PrintStream object to which this monitor logs information
Method Detail

delete

public void delete(DAO<?> dao,
                   String deleteStatement,
                   List<Value> parameters)
Description copied from interface: DaoMonitor
Callback of DELETE statement.

Specified by:
delete in interface DaoMonitor
Parameters:
dao - DAO object
deleteStatement - SQL delete statement
parameters - SQL statement parameters

insert

public void insert(DAO<?> dao,
                   String insertStatement,
                   List<Value> parameters)
Description copied from interface: DaoMonitor
Callback of INSERT statement.

Specified by:
insert in interface DaoMonitor
Parameters:
dao - DAO object
insertStatement - SQL insert statement
parameters - SQL statement parameters.

selectObjectList

public void selectObjectList(DAO<?> dao,
                             String queryString,
                             List<Value> parameters)
Description copied from interface: DaoMonitor
Callback of SELECT query.

Specified by:
selectObjectList in interface DaoMonitor
Parameters:
dao - DAO object
queryString - SQL query
parameters - SQL query parameters.

update

public void update(DAO<?> dao,
                   String updateStatement,
                   List<Value> parameters)
Description copied from interface: DaoMonitor
Callback of UPDATE statement.

Specified by:
update in interface DaoMonitor
Parameters:
dao - DAO object
updateStatement - SQL update statement
parameters - SQL statement parameters


Copyright © 2011-2013 e-point SA. All Rights Reserved.