Project Wonder 5.0

er.extensions.jdbc
Class ERXJDBCConnectionAnalyzer

java.lang.Object
  extended by er.extensions.jdbc.ERXJDBCConnectionAnalyzer

public class ERXJDBCConnectionAnalyzer
extends java.lang.Object

Attempts to verify that a JDBC connection can be made and prints out diagnostic suggestions and information if it cannot.

Author:
Charles Hill and Sacha Mallais

Field Summary
static org.apache.log4j.Logger log
           
 
Constructor Summary
ERXJDBCConnectionAnalyzer(com.webobjects.eoaccess.EOModel aModel)
          Uses the connection dictionary information in aModel to attempt to make a JDBC connection.
ERXJDBCConnectionAnalyzer(com.webobjects.foundation.NSDictionary aConnectionDictionary)
          Designated constructor.
ERXJDBCConnectionAnalyzer(java.lang.String aModelName)
          Uses the connection dictionary information in the EOModel named aModelNameaModel to attempt to make a JDBC connection.
 
Method Summary
 void analyzeConnection()
          Controls the order of analysis.
 com.webobjects.foundation.NSDictionary connectionDictionary()
          Returns the connection dictionary being analyzed.
 void dumpClasspath()
           
 void dumpExtensionDirectories()
           
 void findAdaptor()
          Attempts to load the JDBCAdaptor.
 void findJDBCDriver()
          Attempts to load JDBC driver class.
 void findPlugin()
          Attempts to load JDBCPlugIn or sub-class and verify related configuration.
 com.webobjects.jdbcadaptor.JDBCAdaptor targetAdaptor()
          Returns an instance of JDBCAdaptor.
 com.webobjects.jdbcadaptor.JDBCPlugIn targetPlugIn()
          Returns an instance of JDBCPlugIn or sub-class created from the connection dictionary information.
 void testConnection()
          Attempts to make connection to databas via JDBC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Logger log
Constructor Detail

ERXJDBCConnectionAnalyzer

public ERXJDBCConnectionAnalyzer(com.webobjects.foundation.NSDictionary aConnectionDictionary)
Designated constructor. Uses the information in aConnectionDictionary to attempt to make a JDBC connection.

Parameters:
aConnectionDictionary - the connection information for the JDBC connection

ERXJDBCConnectionAnalyzer

public ERXJDBCConnectionAnalyzer(com.webobjects.eoaccess.EOModel aModel)
Uses the connection dictionary information in aModel to attempt to make a JDBC connection.

Parameters:
aModel - the EOModel from which to take the connection information for the JDBC connection

ERXJDBCConnectionAnalyzer

public ERXJDBCConnectionAnalyzer(java.lang.String aModelName)
Uses the connection dictionary information in the EOModel named aModelNameaModel to attempt to make a JDBC connection.

Parameters:
aModelName - the name of the EOModel from which to take the connection information for the JDBC connection
Method Detail

analyzeConnection

public void analyzeConnection()
Controls the order of analysis.


findAdaptor

public void findAdaptor()
Attempts to load the JDBCAdaptor.


findPlugin

public void findPlugin()
Attempts to load JDBCPlugIn or sub-class and verify related configuration.


findJDBCDriver

public void findJDBCDriver()
Attempts to load JDBC driver class.


testConnection

public void testConnection()
Attempts to make connection to databas via JDBC.


dumpClasspath

public void dumpClasspath()

dumpExtensionDirectories

public void dumpExtensionDirectories()

connectionDictionary

public com.webobjects.foundation.NSDictionary connectionDictionary()
Returns the connection dictionary being analyzed.

Returns:
the connection dictionary being analyzed.

targetAdaptor

public com.webobjects.jdbcadaptor.JDBCAdaptor targetAdaptor()
Returns an instance of JDBCAdaptor.

Returns:
an instance of JDBCAdaptor

targetPlugIn

public com.webobjects.jdbcadaptor.JDBCPlugIn targetPlugIn()
Returns an instance of JDBCPlugIn or sub-class created from the connection dictionary information.

Returns:
an instance of JDBCPlugIn or sub-class

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.