net.sf.log4jdbc
Class DefaultResultSetCollector

java.lang.Object
  extended by net.sf.log4jdbc.DefaultResultSetCollector
All Implemented Interfaces:
ResultSetCollector

public class DefaultResultSetCollector
extends Object
implements ResultSetCollector


Constructor Summary
DefaultResultSetCollector(boolean fillInUnreadValues)
           
 
Method Summary
 int getColumnCount()
           
 String getColumnLabel(int column)
           
 String getColumnName(int column)
           
 List<List<Object>> getRows()
           
 boolean methodReturned(ResultSetSpy resultSetSpy, String methodCall, Object returnValue, Object targetObject, Object... methodParams)
          Expected to be called by a ResultSetSpy for all jdbc methods.
 void preMethod(ResultSetSpy resultSetSpy, String methodCall, Object... methodParams)
          Expected to be called by a ResultSetSpy for prior to the execution of all jdbc methods.
 void reset()
          Clear the result set so far.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultResultSetCollector

public DefaultResultSetCollector(boolean fillInUnreadValues)
Method Detail

getRows

public List<List<Object>> getRows()
Specified by:
getRows in interface ResultSetCollector
Returns:
the result set objects

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface ResultSetCollector
Returns:
the result set column count

reset

public void reset()
Description copied from interface: ResultSetCollector
Clear the result set so far.

Specified by:
reset in interface ResultSetCollector

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface ResultSetCollector
Returns:
the result set column name for a given column number via the result set meta data

getColumnLabel

public String getColumnLabel(int column)

methodReturned

public boolean methodReturned(ResultSetSpy resultSetSpy,
                              String methodCall,
                              Object returnValue,
                              Object targetObject,
                              Object... methodParams)
Description copied from interface: ResultSetCollector
Expected to be called by a ResultSetSpy for all jdbc methods.

Specified by:
methodReturned in interface ResultSetCollector
Returns:
true if the result set is complete (next() returns false)

preMethod

public void preMethod(ResultSetSpy resultSetSpy,
                      String methodCall,
                      Object... methodParams)
Description copied from interface: ResultSetCollector
Expected to be called by a ResultSetSpy for prior to the execution of all jdbc methods.

Specified by:
preMethod in interface ResultSetCollector


Copyright © 2012. All Rights Reserved.