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();
DatabaseLogin
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Connection | Returns: java.sql.ConnectionINTERNAL:
Connect with the specified properties and return the |
| public String | Returns: java.lang.StringINTERNAL: Provide the details of my connection information. |
| public void |
| clone | back to summary |
|---|---|
| public Object clone() INTERNAL: Must be cloneable. | |
| connect | back to summary |
|---|---|
| public Connection connect(Properties properties, Session session) INTERNAL:
Connect with the specified properties and return the
| |
| getConnectionDetails | back to summary |
|---|---|
| public String getConnectionDetails() INTERNAL: Provide the details of my connection information. This is primarily for JMX runtime services.
| |
| toString | back to summary |
|---|---|
| public void toString(PrintWriter writer) INTERNAL:
Print something useful on the log. This information will be displayed
on the EclipseLink log (by default | |