net.sf.log4jdbc
Class DefaultResultSetCollector
java.lang.Object
net.sf.log4jdbc.DefaultResultSetCollector
- All Implemented Interfaces:
- ResultSetCollector
public class DefaultResultSetCollector
- extends Object
- implements ResultSetCollector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultResultSetCollector
public DefaultResultSetCollector(boolean fillInUnreadValues)
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.