com.mockobjects.sql

Class MockConnection2

Implemented Interfaces:
Connection, Verifiable

public class MockConnection2
extends com.mockobjects.sql.CommonMockConnection2

MockConnection2 is a tempary replacement for the MockConnection. It differs from the MockConnection in the way in which preparedstatements are handled. The changes are significant enough to break compatiblity with exsising testcases so MockConnection2 provides a migration path to the new system of handling preparedstatements. This calls will eventually be merged back into MockConnection when it is felt systems using the classes have been provided with enough time to migrate.

Constructor Summary

MockConnection2()
MockConnection2(String name)

Method Summary

Methods inherited from class com.mockobjects.sql.CommonMockConnection2

prepareStatement, setupAddPreparedStatement

Methods inherited from class com.mockobjects.sql.CommonMockConnection

addExpectedAutoCommit, addExpectedPreparedStatementString, clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, rollback, setAutoCommit, setCatalog, setExpectedCloseCalls, setExpectedCommitCalls, setExpectedCreateStatementCalls, setExpectedResultSetConcurrency, setExpectedResultSetType, setExpectedRollbackCalls, setHoldability, setReadOnly, setTransactionIsolation, setTypeMap, setupAddPreparedStatement, setupAutoCommit, setupCloseException, setupIsClose, setupIsClosed, setupIsClosedException, setupMetaData, setupStatement, setupThrowExceptionOnPrepareOrCreate

Methods inherited from class com.mockobjects.MockObject

notImplemented, notYetImplemented, verify

Constructor Details

MockConnection2

public MockConnection2()

MockConnection2

public MockConnection2(String name)

Copyright © 2002 Mock Objects. All Rights Reserved.