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

B32476-04

oracle.toplink.sessions
Interface Connector

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable
All Known Implementing Classes:
AQEISConnectionSpec, AttunityConnectionSpec, BlackboxConnectionSpec, DefaultConnector, DirectConnector, EISConnectionSpec, JMSEISConnectionSpec, JNDIConnector, MQConnectionSpec, OracleJDBC10_1_0_2ProxyConnector, OracleOCIProxyConnector, XMLFileEISConnectionSpec

public interface Connector
extends java.io.Serializable, java.lang.Cloneable

Purpose: Define an interface for supplying TopLink with a Connection to a JDBC database.

Description: This interface defines the methods to be implemented that allow TopLink to acquire a Connection to a JDBC database. There are only 2 methods that need to be implemented:

java.sql.Connection connect(java.util.Properties properties)
void toString(java.io.PrintWriter writer)
Once these methods have been implemented, an instance of the new Connector can be passed to a JDBCLogin at startup. For example:
session.getLogin().setConnector(new FooConnector());
session.login();

Since:
TOPLink/Java 2.1
See Also:
DatabaseLogin


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