com.mockrunner.jdbc
Class PreparedStatementResultSetHandler

java.lang.Object
  extended by com.mockrunner.jdbc.AbstractResultSetHandler
      extended by com.mockrunner.jdbc.AbstractParameterResultSetHandler
          extended by com.mockrunner.jdbc.PreparedStatementResultSetHandler

public class PreparedStatementResultSetHandler
extends AbstractParameterResultSetHandler

Concrete handler for MockPreparedStatement.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.mockrunner.jdbc.AbstractParameterResultSetHandler
AbstractParameterResultSetHandler.ParameterWrapper
 
Constructor Summary
PreparedStatementResultSetHandler()
           
 
Method Summary
 void addPreparedStatement(MockPreparedStatement statement)
          The Connection adds new statements with this method.
 void clearPreparedStatements()
          Clears all prepared statements
 java.util.Map getPreparedStatementMap()
          Returns a Map of all prepared statements.
 java.util.List getPreparedStatements()
          Returns a List of all prepared statements.
 
Methods inherited from class com.mockrunner.jdbc.AbstractParameterResultSetHandler
addParameterMapForExecutedStatement, clearGeneratedKeys, clearResultSets, clearThrowsSQLException, clearUpdateCounts, getExecutedStatementParameter, getExecutedStatementParameterMap, getGeneratedKeys, getMatchingParameterWrapper, getParametersForExecutedStatement, getResultSet, getResultSets, getSQLException, getThrowsSQLException, getUpdateCount, getUpdateCounts, hasMultipleResultSets, hasMultipleUpdateCounts, prepareGeneratedKeys, prepareGeneratedKeys, prepareGeneratedKeys, prepareResultSet, prepareResultSet, prepareResultSet, prepareResultSets, prepareResultSets, prepareResultSets, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareThrowsSQLException, prepareUpdateCount, prepareUpdateCount, prepareUpdateCount, prepareUpdateCounts, prepareUpdateCounts, prepareUpdateCounts, setExactMatchParameter
 
Methods inherited from class com.mockrunner.jdbc.AbstractResultSetHandler
addExecutedStatement, addReturnedResultSet, addReturnedResultSets, clearGlobalGeneratedKeys, clearGlobalResultSet, clearGlobalUpdateCount, clearReturnsResultSet, createResultSet, createResultSet, createResultSet, createResultSet, getCaseSensitive, getContinueProcessingOnBatchFailure, getExactMatch, getExecutedStatements, getGeneratedKeys, getGeneratedKeysMap, getGlobalGeneratedKeys, getGlobalResultSet, getGlobalResultSets, getGlobalUpdateCount, getGlobalUpdateCounts, getResultSet, getResultSetMap, getResultSets, getReturnedResultSets, getReturnsResultSet, getSQLException, getThrowsSQLException, getUpdateCount, getUpdateCountMap, getUpdateCounts, getUseRegularExpressions, hasMultipleGlobalResultSets, hasMultipleGlobalUpdateCounts, hasMultipleResultSets, hasMultipleUpdateCounts, prepareGeneratedKeys, prepareGlobalGeneratedKeys, prepareGlobalResultSet, prepareGlobalResultSets, prepareGlobalUpdateCount, prepareGlobalUpdateCounts, prepareResultSet, prepareResultSets, prepareReturnsResultSet, prepareThrowsSQLException, prepareThrowsSQLException, prepareUpdateCount, prepareUpdateCounts, setCaseSensitive, setContinueProcessingOnBatchFailure, setExactMatch, setUseRegularExpressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedStatementResultSetHandler

public PreparedStatementResultSetHandler()
Method Detail

addPreparedStatement

public void addPreparedStatement(MockPreparedStatement statement)
The Connection adds new statements with this method.

Parameters:
statement - the MockPreparedStatement

getPreparedStatements

public java.util.List getPreparedStatements()
Returns a List of all prepared statements.

Returns:
the List of MockPreparedStatement objects

getPreparedStatementMap

public java.util.Map getPreparedStatementMap()
Returns a Map of all prepared statements. The SQL strings map to the corresponding MockPreparedStatement object.

Returns:
the Map of MockPreparedStatement objects

clearPreparedStatements

public void clearPreparedStatements()
Clears all prepared statements