Sun Adapter for VSAM

com.stc.connector.vsamadapter.appconn
Class VSAMApplicationConnectionFactory

java.lang.Object
  extended by com.stc.connector.framework.util.JndiJCAObject
      extended by com.stc.connector.vsamadapter.appconn.DbApplicationConnectionFactoryImpl
          extended by com.stc.connector.vsamadapter.appconn.VSAMApplicationConnectionFactory
All Implemented Interfaces:
com.stc.connector.appconn.common.ApplicationConnectionFactory, com.stc.connector.appconn.db.DbApplicationConnectionFactory, java.io.Serializable, javax.naming.Referenceable

public class VSAMApplicationConnectionFactory
extends DbApplicationConnectionFactoryImpl

A factory class for creating VSAMApplicationConnection.

Version:
$Revision: 1.6 $
Author:
$Author: pveerava $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.stc.connector.vsamadapter.appconn.DbApplicationConnectionFactoryImpl
mDataSource
 
Constructor Summary
VSAMApplicationConnectionFactory(javax.sql.DataSource ds)
          Creates a new instance of VSASMApplicationConnectionFactory.
VSAMApplicationConnectionFactory(javax.sql.DataSource ds, javax.resource.spi.ConnectionManager cm)
          Creates a new instance of DbApplicationConnectionFactory.
 
Method Summary
 com.stc.connector.appconn.common.ApplicationConnection getConnection()
          Gets the Db Application Connection which represents a connection handle to the underlying Db EIS.
 com.stc.connector.appconn.common.ApplicationConnection getConnection(java.util.Properties connProps)
          Gets the Application Connection which represents a connection handle to the underlying EIS using the connection information in the Properties.
 
Methods inherited from class com.stc.connector.vsamadapter.appconn.DbApplicationConnectionFactoryImpl
getDataSource
 
Methods inherited from class com.stc.connector.framework.util.JndiJCAObject
getReference, getVersion, setReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Constructor Detail

VSAMApplicationConnectionFactory

public VSAMApplicationConnectionFactory(javax.sql.DataSource ds)
Creates a new instance of VSASMApplicationConnectionFactory.

Parameters:
ds - a DataSource instance used for creating a connection.

VSAMApplicationConnectionFactory

public VSAMApplicationConnectionFactory(javax.sql.DataSource ds,
                                        javax.resource.spi.ConnectionManager cm)
Creates a new instance of DbApplicationConnectionFactory.

Parameters:
ds - the ManagedConnection which created this connection. In database, this is the DataSource.
cm - a ConnectionManager instance.
Method Detail

getConnection

public com.stc.connector.appconn.common.ApplicationConnection getConnection()
                                                                     throws com.stc.connector.appconn.common.ApplicationConnectionException
Gets the Db Application Connection which represents a connection handle to the underlying Db EIS.

Specified by:
getConnection in interface com.stc.connector.appconn.common.ApplicationConnectionFactory
Overrides:
getConnection in class DbApplicationConnectionFactoryImpl
Returns:
A Db Application Connection.
Throws:
com.stc.connector.appconn.common.ApplicationConnectionException - upon error.

getConnection

public com.stc.connector.appconn.common.ApplicationConnection getConnection(java.util.Properties connProps)
                                                                     throws com.stc.connector.appconn.common.ApplicationConnectionException
Gets the Application Connection which represents a connection handle to the underlying EIS using the connection information in the Properties.

Specified by:
getConnection in interface com.stc.connector.appconn.common.ApplicationConnectionFactory
Overrides:
getConnection in class DbApplicationConnectionFactoryImpl
Parameters:
connProps - Properties containing connection specific information.
Returns:
An Application Connection which represents a connection handle to the EIS.
Throws:
com.stc.connector.appconn.common.ApplicationConnectionException - upon error.

Sun Adapter for VSAM