com.github.smokestack.jca.cci
Class MockConnectionFactory
java.lang.Object
com.github.smokestack.jca.cci.MockConnectionFactory
- All Implemented Interfaces:
- Serializable, Referenceable, ConnectionFactory
public class MockConnectionFactory
- extends Object
- implements ConnectionFactory
- See Also:
- Serialized Form
mockConnections
protected List<MockConnection> mockConnections
reference
protected Reference reference
mockResourceAdapterMetaData
protected MockResourceAdapterMetaData mockResourceAdapterMetaData
mockRecordFactory
protected MockRecordFactory mockRecordFactory
MockConnectionFactory
public MockConnectionFactory()
getConnection
public Connection getConnection()
throws ResourceException
- Specified by:
getConnection
in interface ConnectionFactory
- Throws:
ResourceException
_getConnection
public MockConnection _getConnection()
throws ResourceException
- Throws:
ResourceException
getConnection
public Connection getConnection(ConnectionSpec connectionSpec)
throws ResourceException
- Specified by:
getConnection
in interface ConnectionFactory
- Throws:
ResourceException
_getConnection
public MockConnection _getConnection(ConnectionSpec connectionSpec)
throws ResourceException
- Throws:
ResourceException
getMetaData
public ResourceAdapterMetaData getMetaData()
throws ResourceException
- Specified by:
getMetaData
in interface ConnectionFactory
- Throws:
ResourceException
_getMetaData
public MockResourceAdapterMetaData _getMetaData()
throws ResourceException
- Throws:
ResourceException
getRecordFactory
public RecordFactory getRecordFactory()
throws ResourceException
- Specified by:
getRecordFactory
in interface ConnectionFactory
- Throws:
ResourceException
_getRecordFactory
public MockRecordFactory _getRecordFactory()
throws ResourceException
- Throws:
ResourceException
setReference
public void setReference(Reference reference)
_setReference
public void _setReference(Reference reference)
getReference
public Reference getReference()
throws NamingException
- Specified by:
getReference
in interface Referenceable
- Throws:
NamingException
_getReference
public Reference _getReference()
throws NamingException
- Throws:
NamingException
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.