Oracle Application Server TopLink API Reference
10g (9.0.4.3)

B10491-02

oracle.toplink.jndi.was
Class DataSourceConnector

java.lang.Object
  extended byoracle.toplink.jndi.was.DataSourceConnector

All Implemented Interfaces:
java.lang.Cloneable, Connector, java.io.Serializable

public class DataSourceConnector
extends java.lang.Object
implements Connector

Required for connection pooling in WebSphere 3.0. The data source in WebSphere has the same API as in javax.sql, but does not implement it as using JDK 1.1.

Since:
TOPLink/Java 3.0
See Also:
Serialized Form

Constructor Summary
DataSourceConnector()
          PUBLIC: Construct a Connector with no settings.
DataSourceConnector(javax.sql.DataSource dataSource)
          PUBLIC: Construct a Connector with the specified settings.

 

Method Summary
 java.lang.Object clone()
          INTERNAL: Clone the connector.
 java.sql.Connection connect(java.util.Properties properties)
          INTERNAL: Connect with the specified properties and return the Connection.
 javax.sql.DataSource getDataSource()
          PUBLIC: Return the javax.sql.DataSource.
 void setDataSource(javax.sql.DataSource dataSource)
          PUBLIC: Set the javax.sql.DataSource.
 java.lang.String toString()
          PUBLIC: Print data source info.
 void toString(java.io.PrintWriter writer)
          INTERNAL: Print something useful on the log.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DataSourceConnector

public DataSourceConnector()
PUBLIC: Construct a Connector with no settings. The context and datasource name will still need to be set.

DataSourceConnector

public DataSourceConnector(javax.sql.DataSource dataSource)
PUBLIC: Construct a Connector with the specified settings.
Method Detail

clone

public java.lang.Object clone()
INTERNAL: Clone the connector.
Specified by:
clone in interface Connector

connect

public java.sql.Connection connect(java.util.Properties properties)
                            throws DatabaseException,
ValidationException
INTERNAL: Connect with the specified properties and return the Connection.
Specified by:
connect in interface Connector
Returns:
java.sql.Connection
Throws:
DatabaseException
ValidationException

getDataSource

public javax.sql.DataSource getDataSource()
PUBLIC: Return the javax.sql.DataSource.

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
PUBLIC: Set the javax.sql.DataSource.

toString

public java.lang.String toString()
PUBLIC: Print data source info.

toString

public void toString(java.io.PrintWriter writer)
INTERNAL: Print something useful on the log.
Specified by:
toString in interface Connector

Copyright © 1998, 2004 Oracle Corporation. All Rights Reserved.