com.stc.connector.oracleadapter.appconn
Class OracleApplicationConnectionFactory
java.lang.Object
   com.stc.connector.framework.util.JndiJCAObject
com.stc.connector.framework.util.JndiJCAObject
       com.stc.connector.oracleadapter.appconn.DbApplicationConnectionFactoryImpl
com.stc.connector.oracleadapter.appconn.DbApplicationConnectionFactoryImpl
           com.stc.connector.oracleadapter.appconn.OracleApplicationConnectionFactory
com.stc.connector.oracleadapter.appconn.OracleApplicationConnectionFactory
- All Implemented Interfaces: 
- com.stc.connector.appconn.common.ApplicationConnectionFactory, com.stc.connector.appconn.db.DbApplicationConnectionFactory, java.io.Serializable, javax.naming.Referenceable
- public class OracleApplicationConnectionFactory 
- extends DbApplicationConnectionFactoryImpl
A factory class for creating OracleApplicationConnection.
- Version:
- 5.1
- Author:
- Andy Schaefer
- See Also:
- Serialized Form
 
| 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.
 | 
|  void | stop()
 | 
 
 
| Methods inherited from class com.stc.connector.framework.util.JndiJCAObject | 
| getReference, getVersion, setReference | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface javax.naming.Referenceable | 
| getReference | 
 
OracleApplicationConnectionFactory
public OracleApplicationConnectionFactory(javax.sql.DataSource ds)
- Creates a new instance of OracleApplicationConnectionFactory.
 
- Parameters:
- ds- a DataSource instance used for creating a connection.
 
OracleApplicationConnectionFactory
public OracleApplicationConnectionFactory(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.
 
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:
- getConnectionin interface- com.stc.connector.appconn.common.ApplicationConnectionFactory
- Overrides:
- getConnectionin 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:
- getConnectionin interface- com.stc.connector.appconn.common.ApplicationConnectionFactory
- Overrides:
- getConnectionin 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.
 
stop
public void stop()
- 
- Overrides:
- stopin class- DbApplicationConnectionFactoryImpl
 
- 
 
Copyright © 2008 Sun Microsystems, Inc.