Class DirectConnector

java.lang.Object
org.eclipse.persistence.sessions.DefaultConnector
org.eclipse.persistence.sessions.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.

See Also:
Author:
Big Country
  • Constructor Details

    • 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.
  • Method Details