Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)


Class DirectConnector

  extended by oracle.toplink.sessions.DefaultConnector
      extended by oracle.toplink.sessions.DirectConnector
All Implemented Interfaces:, java.lang.Cloneable, Connector

public class DirectConnector
extends DefaultConnector

Purpose:Use this Connector to build a java.sql.Connection by directly instantiating the Driver, as opposed to using the DriverManager.

TOPLink/Java 2.1
See Also:
Serialized Form

Constructor Summary
          Construct a Connector with default settings (Sun JDBC-ODBC bridge).
DirectConnector(java.lang.String driverClassName, java.lang.String driverURLHeader, java.lang.String databaseURL)
          Construct a Connector with the specified settings.
Method Summary
Methods inherited from class oracle.toplink.sessions.DefaultConnector
getConnectionDetails, getConnectionString, getDatabaseURL, getDriverClassName, getDriverURLHeader, setDatabaseURL, setDriverClassName, setDriverURLHeader, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public DirectConnector()
Construct a Connector with default settings (Sun JDBC-ODBC bridge). Although this does not really make sense for a "direct" Connector - the Sun JdbcOdbcDriver works fine with the DriverManager.


public DirectConnector(java.lang.String driverClassName,
                       java.lang.String driverURLHeader,
                       java.lang.String databaseURL)
Construct a Connector with the specified settings.

Copyright © 1998, 2012, Oracle. All Rights Reserved.