com.ibm.connector2.iseries.pgmcall
Class ISeriesPgmCallConnectionFactory

java.lang.Object
  |
  +--com.ibm.connector2.iseries.pgmcall.ISeriesPgmCallConnectionFactory
All Implemented Interfaces:
javax.resource.cci.ConnectionFactory, javax.resource.Referenceable, javax.naming.Referenceable, java.io.Serializable

public class ISeriesPgmCallConnectionFactory
extends java.lang.Object
implements javax.resource.cci.ConnectionFactory, java.io.Serializable, javax.resource.Referenceable

Application Component use the ISeriesPgmCallConnectionFactory to create ISeriesPgmCallConnection.

See Also:
getConnection(), Serialized Form

Constructor Summary
ISeriesPgmCallConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)
          Constructor to create ISeriesPgmCallConnectionFactory
ISeriesPgmCallConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
          Constructor to create ISeriesPgmCallConnectionFactory
 
Method Summary
 void clearForSessionID(java.lang.String id)
          Release all connections associated with the session.
 javax.resource.cci.Connection getConnection()
          Used by application component to get a connection
 javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec properties)
          Used by application component to get a connection Application component provides ISeriesPgmCallConnectionSpecImpl to get a Connection
 javax.resource.cci.ResourceAdapterMetaData getMetaData()
          Gets the information on the ISeriesPgmCallConnectionFactory
 javax.resource.cci.RecordFactory getRecordFactory()
          getRecordFactory not supported by this resource adapter
 javax.naming.Reference getReference()
           
 void setReference(javax.naming.Reference reference)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISeriesPgmCallConnectionFactory

public ISeriesPgmCallConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)
Constructor to create ISeriesPgmCallConnectionFactory
Parameters:
mcf - ManagedConnectionFactory

ISeriesPgmCallConnectionFactory

public ISeriesPgmCallConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf,
                                       javax.resource.spi.ConnectionManager cm)
Constructor to create ISeriesPgmCallConnectionFactory
Parameters:
mcf - ManagedConnectionFactory
cm - ConnectionManager
Method Detail

clearForSessionID

public void clearForSessionID(java.lang.String id)
                       throws javax.resource.ResourceException
Release all connections associated with the session.
Parameters:
properties - ConnectionSpec
Throws:
javax.resource.ResourceException - Failed to clear connections for the session

getConnection

public javax.resource.cci.Connection getConnection()
                                            throws javax.resource.ResourceException
Used by application component to get a connection
Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Returns:
Connection ISeriesPgmCallConnection
Throws:
javax.resource.ResourceException - Failed to get a connection to a connection.

getConnection

public javax.resource.cci.Connection getConnection(javax.resource.cci.ConnectionSpec properties)
                                            throws javax.resource.ResourceException
Used by application component to get a connection Application component provides ISeriesPgmCallConnectionSpecImpl to get a Connection
Specified by:
getConnection in interface javax.resource.cci.ConnectionFactory
Parameters:
properties - ConnectionSpec
Returns:
Connection ISeriesPgmCallConnection
Throws:
javax.resource.ResourceException - Failed to get a connection to a connection.

getMetaData

public javax.resource.cci.ResourceAdapterMetaData getMetaData()
                                                       throws javax.resource.ResourceException
Gets the information on the ISeriesPgmCallConnectionFactory
Specified by:
getMetaData in interface javax.resource.cci.ConnectionFactory
Returns:
ISeriesPgmCallResourceAdapterMetaData
Throws:
javax.resource.ResourceException -  

getRecordFactory

public javax.resource.cci.RecordFactory getRecordFactory()
                                                  throws javax.resource.ResourceException
getRecordFactory not supported by this resource adapter
Specified by:
getRecordFactory in interface javax.resource.cci.ConnectionFactory
Returns:
RecordFactory
Throws:
javax.resource.ResourceException -  

getReference

public javax.naming.Reference getReference()
Specified by:
getReference in interface javax.naming.Referenceable

setReference

public void setReference(javax.naming.Reference reference)
Specified by:
setReference in interface javax.resource.Referenceable