com.github.smokestack.jca.cci
Class MockConnection
java.lang.Object
com.github.smokestack.jca.cci.MockConnection
- All Implemented Interfaces:
- Connection
public class MockConnection
- extends Object
- implements Connection
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
MockConnection
public MockConnection(ConnectionSpec connectionSpec)
MockConnection
public MockConnection()
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.