IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.samples.business.sna.lu0
Class DummyLu0ConnectionFactory

java.lang.Object
  extended bycom.ibm.btt.samples.business.sna.lu0.DummyLu0ConnectionFactory
All Implemented Interfaces:
javax.resource.cci.ConnectionFactory, javax.naming.Referenceable, javax.resource.Referenceable, java.io.Serializable

public class DummyLu0ConnectionFactory
extends java.lang.Object
implements javax.resource.cci.ConnectionFactory

Application level handle to the Managed Connection Factory, returned from the JNDI lookup and used to obtain connections.

See Also:
Serialized Form

Constructor Summary
DummyLu0ConnectionFactory()
          DummyLu0ConnectionFactory default constructor
DummyLu0ConnectionFactory(javax.resource.spi.ConnectionManager connectionManager, DummyLu0ManagedConnectionFactory lu0ManagedConnectionFactory)
          DummyLu0ConnectionFactory default constructor
 
Method Summary
 javax.resource.cci.Connection getConnection()
          Returns a connection to an EIS instance
 javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
          Returns a connection to an EIS instance
(package private)  javax.resource.spi.ConnectionManager getConnectionManager()
          Returns the ConnectionManager instance.
 java.io.PrintWriter getLogWriter()
           
(package private)  javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
           
 javax.resource.cci.ResourceAdapterMetaData getMetaData()
          Returns metadata for the Resource Adapter.
 javax.resource.cci.RecordFactory getRecordFactory()
           
 javax.naming.Reference getReference()
           
(package private)  void setConnectionManager(javax.resource.spi.ConnectionManager connectionManager)
          Sets the ConnectionManager instance.
(package private)  void setLogWriter(java.io.PrintWriter out)
          Sets the log writer for the ConnectionFactory instance.
(package private)  void setManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
          Sets the ManagedConnectionFactory instance.
 void setReference(javax.naming.Reference reference)
          Sets the Reference instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLu0ConnectionFactory

public DummyLu0ConnectionFactory()
DummyLu0ConnectionFactory default constructor


DummyLu0ConnectionFactory

public DummyLu0ConnectionFactory(javax.resource.spi.ConnectionManager connectionManager,
                                 DummyLu0ManagedConnectionFactory lu0ManagedConnectionFactory)
DummyLu0ConnectionFactory default constructor

Parameters:
connectionManager - javax.resource.spi.ConnectionManager
lu0ManagedConnectionFactory - com.ibm.btt.samples.business.sna.lu0.DummyLu0ManagedConnectionFactory
Method Detail

getConnection

public javax.resource.cci.Connection getConnection()
                                            throws javax.resource.ResourceException
Returns a connection to an EIS instance

Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Returns:
javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getConnection

public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec connectionSpec)
                                            throws javax.resource.ResourceException
Returns a connection to an EIS instance

Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Parameters:
connectionSpec - javax.resource.cci.ConnectionSpec
Returns:
javax.resource.cci.Connection
Throws:
javax.resource.ResourceException

getLogWriter

public java.io.PrintWriter getLogWriter()
Returns:
java.io.PrintWriter log writer associated with the ConnectionFactory

getManagedConnectionFactory

javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
Returns:
javax.resource.spi.ManagedConnectionFactory associated with the ConnectionFactory

getMetaData

public javax.resource.cci.ResourceAdapterMetaData getMetaData()
Returns metadata for the Resource Adapter. Note that the metadata information is about the ResourceAdapter and not the EIS instance. An invocation of this method does not require that an active connection to an EIS instance should have been established.

Specified by:
getMetaData in interface javax.resource.cci.ConnectionFactory
Returns:
ResourceAdapterMetaData instance

getRecordFactory

public javax.resource.cci.RecordFactory getRecordFactory()
                                                  throws javax.resource.ResourceException
Specified by:
getRecordFactory in interface javax.resource.cci.ConnectionFactory
Throws:
javax.resource.NotSupportedException
javax.resource.ResourceException

getReference

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

setConnectionManager

void setConnectionManager(javax.resource.spi.ConnectionManager connectionManager)
Sets the ConnectionManager instance.

Parameters:
connectionManager - javax.resource.spi.ConnectionManager instance

setLogWriter

void setLogWriter(java.io.PrintWriter out)
Sets the log writer for the ConnectionFactory instance.

Parameters:
out - Log writer associated with the ConnectionFactory

setManagedConnectionFactory

void setManagedConnectionFactory(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
Sets the ManagedConnectionFactory instance.

Parameters:
managedConnectionFactory - javax.resource.spi.ManagedConnectionFactory

setReference

public void setReference(javax.naming.Reference reference)
Sets the Reference instance.

Specified by:
setReference in interface javax.resource.Referenceable
Parameters:
reference - javax.naming.Reference

getConnectionManager

javax.resource.spi.ConnectionManager getConnectionManager()
Returns the ConnectionManager instance.

Returns:
javax.resource.spi.ConnectionManager instance

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005