com.github.smokestack.jca.cci
Class MockConnectionFactory

java.lang.Object
  extended by com.github.smokestack.jca.cci.MockConnectionFactory
All Implemented Interfaces:
Serializable, Referenceable, ConnectionFactory

public class MockConnectionFactory
extends Object
implements ConnectionFactory

See Also:
Serialized Form

Field Summary
protected  List<MockConnection> mockConnections
           
protected  MockRecordFactory mockRecordFactory
           
protected  MockResourceAdapterMetaData mockResourceAdapterMetaData
           
protected  Reference reference
           
 
Constructor Summary
MockConnectionFactory()
           
 
Method Summary
 MockConnection _getConnection()
           
 MockConnection _getConnection(ConnectionSpec connectionSpec)
           
 MockResourceAdapterMetaData _getMetaData()
           
 MockRecordFactory _getRecordFactory()
           
 Reference _getReference()
           
 void _setReference(Reference reference)
           
 Connection getConnection()
           
 Connection getConnection(ConnectionSpec connectionSpec)
           
 ResourceAdapterMetaData getMetaData()
           
 RecordFactory getRecordFactory()
           
 Reference getReference()
           
 void setReference(Reference reference)
           
 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

mockConnections

protected List<MockConnection> mockConnections

reference

protected Reference reference

mockResourceAdapterMetaData

protected MockResourceAdapterMetaData mockResourceAdapterMetaData

mockRecordFactory

protected MockRecordFactory mockRecordFactory
Constructor Detail

MockConnectionFactory

public MockConnectionFactory()
Method Detail

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.