com.github.smokestack.jca.cci
Class MockConnection

java.lang.Object
  extended by com.github.smokestack.jca.cci.MockConnection
All Implemented Interfaces:
Connection

public class MockConnection
extends Object
implements Connection


Nested Class Summary
static class MockConnection.ConnectionState
           
 
Field Summary
protected  ConnectionSpec connectionSpec
           
protected  MockConnection.ConnectionState connectionState
           
protected  MockConnectionMetaData mockConnectionMetaData
           
protected  MockInteraction mockInteraction
           
protected  MockResultSetInfo mockResultSetInfo
           
protected  MockLocalTransaction mockTransaction
           
 
Constructor Summary
MockConnection()
           
MockConnection(ConnectionSpec connectionSpec)
           
 
Method Summary
 void _close()
           
 MockInteraction _createInteraction()
           
 MockLocalTransaction _getLocalTransaction()
           
 MockConnectionMetaData _getMetaData()
           
 MockResultSetInfo _getResultSetInfo()
           
 void close()
           
 Interaction createInteraction()
           
 LocalTransaction getLocalTransaction()
           
 ConnectionMetaData getMetaData()
           
 ResultSetInfo getResultSetInfo()
           
 String toString()
           
 void validateMockCommit()
           
 void validateMockComplete()
           
 void validateMockRollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectionState

protected MockConnection.ConnectionState connectionState

mockInteraction

protected MockInteraction mockInteraction

mockTransaction

protected MockLocalTransaction mockTransaction

connectionSpec

protected ConnectionSpec connectionSpec

mockResultSetInfo

protected MockResultSetInfo mockResultSetInfo

mockConnectionMetaData

protected MockConnectionMetaData mockConnectionMetaData
Constructor Detail

MockConnection

public MockConnection(ConnectionSpec connectionSpec)

MockConnection

public MockConnection()
Method Detail

close

public void close()
           throws ResourceException
Specified by:
close in interface Connection
Throws:
ResourceException

_close

public void _close()
            throws ResourceException
Throws:
ResourceException

createInteraction

public Interaction createInteraction()
                              throws ResourceException
Specified by:
createInteraction in interface Connection
Throws:
ResourceException

_createInteraction

public MockInteraction _createInteraction()
                                   throws ResourceException
Throws:
ResourceException

getLocalTransaction

public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Specified by:
getLocalTransaction in interface Connection
Throws:
ResourceException

_getLocalTransaction

public MockLocalTransaction _getLocalTransaction()
                                          throws ResourceException
Throws:
ResourceException

getMetaData

public ConnectionMetaData getMetaData()
                               throws ResourceException
Specified by:
getMetaData in interface Connection
Throws:
ResourceException

_getMetaData

public MockConnectionMetaData _getMetaData()
                                    throws ResourceException
Throws:
ResourceException

getResultSetInfo

public ResultSetInfo getResultSetInfo()
                               throws ResourceException
Specified by:
getResultSetInfo in interface Connection
Throws:
ResourceException

_getResultSetInfo

public MockResultSetInfo _getResultSetInfo()
                                    throws ResourceException
Throws:
ResourceException

validateMockComplete

public void validateMockComplete()

validateMockCommit

public void validateMockCommit()

validateMockRollback

public void validateMockRollback()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.