com.mockrunner.mock.connector.cci
Class MockConnectionFactory
java.lang.Object
com.mockrunner.mock.connector.cci.MockConnectionFactory
- All Implemented Interfaces:
- java.io.Serializable, javax.naming.Referenceable, javax.resource.cci.ConnectionFactory
public class MockConnectionFactory
- extends java.lang.Object
- implements javax.resource.cci.ConnectionFactory
Mock implementation of ConnectionFactory
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockConnectionFactory
public MockConnectionFactory()
setConnection
public void setConnection(javax.resource.cci.Connection connection)
getConnection
public javax.resource.cci.Connection getConnection()
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
getMockConnection
public MockConnection getMockConnection()
getConnection
public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec cs)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
getRecordFactory
public javax.resource.cci.RecordFactory getRecordFactory()
throws javax.resource.ResourceException
- Specified by:
getRecordFactory
in interface javax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.cci.ResourceAdapterMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData
in interface javax.resource.cci.ConnectionFactory
- Throws:
javax.resource.ResourceException
setReference
public void setReference(javax.naming.Reference reference)
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
- Specified by:
getReference
in interface javax.naming.Referenceable
- Throws:
javax.naming.NamingException
setMetaData
public void setMetaData(javax.resource.cci.ResourceAdapterMetaData metaData)
- Sets the resource adapter meta data. If you do not set an explicit
ResourceAdapterMetaData
object, a default MockResourceAdapterMetaData
will be created.
- Parameters:
metaData
- the ResourceAdapterMetaData
setRecordFactory
public void setRecordFactory(javax.resource.cci.RecordFactory recordFactory)
- Sets the record factory. If you do not set an explicit
RecordFactory
, a default MockRecordFactory
will be created.
- Parameters:
recordFactory
- the RecordFactory