org.jboss.test.jca.adapter
Class TestConnectionFactory

java.lang.Object
  extended byorg.jboss.test.jca.adapter.TestConnectionFactory
All Implemented Interfaces:
ConnectionFactory (src) , javax.naming.Referenceable, Referenceable (src) , java.io.Serializable

public class TestConnectionFactory
extends java.lang.Object
implements ConnectionFactory (src) , Referenceable (src)

TestConnectionFactory.java Created: Tue Jan 1 01:02:16 2002

See Also:
Serialized Form

Constructor Summary
TestConnectionFactory(ConnectionManager (src)  cm, TestManagedConnectionFactory (src)  mcf)
           
 
Method Summary
 Connection (src) getConnection()
          Gets a connection from the resource adapter.
 Connection (src) getConnection(ConnectionSpec (src)  ignore)
          Gets a connection from the resource adapter.
 Connection (src) getConnection(java.lang.String failure)
           
 ResourceAdapterMetaData (src) getMetaData()
          Gets metadata for the resource adapter.
 RecordFactory (src) getRecordFactory()
          Gets a RecordFactory instance for use in creating Record objects.
 javax.naming.Reference getReference()
           
 void setFailure(java.lang.String failure)
           
 void setReference(javax.naming.Reference ref)
          Sets the reference instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestConnectionFactory

public TestConnectionFactory(ConnectionManager (src)  cm,
                             TestManagedConnectionFactory (src)  mcf)
Method Detail

setReference

public void setReference(javax.naming.Reference ref)
Description copied from interface: Referenceable (src)
Sets the reference instance

Specified by:
setReference in interface Referenceable (src)
Parameters:
ref - the reference

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Returns:
Throws:
javax.naming.NamingException -

getConnection

public Connection (src)  getConnection()
                         throws ResourceException (src) 
Description copied from interface: ConnectionFactory (src)
Gets a connection from the resource adapter. When using this method the client does not pass any security information, and wants the container to manage sign-on. This is called container managed sign-on.

Specified by:
getConnection in interface ConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

getConnection

public Connection (src)  getConnection(ConnectionSpec (src)  ignore)
                         throws ResourceException (src) 
Description copied from interface: ConnectionFactory (src)
Gets a connection from the resource adapter. When using this method the client passes in the security information. This is called component managed sign-on.

Specified by:
getConnection in interface ConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

getConnection

public Connection (src)  getConnection(java.lang.String failure)
                         throws ResourceException (src) 
Throws:
ResourceException (src)

getRecordFactory

public RecordFactory (src)  getRecordFactory()
                               throws ResourceException (src) 
Description copied from interface: ConnectionFactory (src)
Gets a RecordFactory instance for use in creating Record objects.

Specified by:
getRecordFactory in interface ConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

getMetaData

public ResourceAdapterMetaData (src)  getMetaData()
                                    throws ResourceException (src) 
Description copied from interface: ConnectionFactory (src)
Gets metadata for the resource adapter. This call does not require an active connection.

Specified by:
getMetaData in interface ConnectionFactory (src)
Returns:
Throws:
ResourceException (src) -

setFailure

public void setFailure(java.lang.String failure)