Class DirectConnector

  • All Implemented Interfaces:
    Serializable, 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.

    Since:
    TOPLink/Java 2.1
    Author:
    Big Country
    See Also:
    Serialized Form
    • Constructor Detail

      • DirectConnector

        public DirectConnector()
        PUBLIC: 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.
      • DirectConnector

        public DirectConnector​(String driverClassName,
                               String driverURLHeader,
                               String databaseURL)
        PUBLIC: Construct a Connector with the specified settings.