ERXJDBCConnectionAnalyzer Class Reference

Collaboration diagram for ERXJDBCConnectionAnalyzer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void analyzeConnection ()
NSDictionary connectionDictionary ()
void dumpClasspath ()
void dumpExtensionDirectories ()
 ERXJDBCConnectionAnalyzer (String aModelName)
 ERXJDBCConnectionAnalyzer (EOModel aModel)
 ERXJDBCConnectionAnalyzer (NSDictionary aConnectionDictionary)
void findAdaptor ()
void findJDBCDriver ()
void findPlugin ()
JDBCAdaptor targetAdaptor ()
JDBCPlugIn targetPlugIn ()
void testConnection ()

Static Public Attributes

static final Logger log = Logger.getLogger("er.transaction.adaptor.ConnectionAnalyzer")

Private Attributes

NSDictionary _connectionDictionary
JDBCAdaptor _targetAdaptor
JDBCPlugIn _targetPlugIn


Detailed Description

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 mschrag

Constructor & Destructor Documentation

ERXJDBCConnectionAnalyzer ( 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

require [valid_connection_dictionary] aConnectionDictionary != null; *

ERXJDBCConnectionAnalyzer ( 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

require [valid_model] aModel != null; *

ERXJDBCConnectionAnalyzer ( 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


Member Function Documentation

void analyzeConnection (  ) 

Controls the order of analysis.

NSDictionary connectionDictionary (  ) 

Returns the connection dictionary being analyzed.

Returns:
the connection dictionary being analyzed.

void dumpClasspath (  ) 

void dumpExtensionDirectories (  ) 

void findAdaptor (  ) 

Attempts to load the JDBCAdaptor.

ensure [targetAdaptor_created] targetAdaptor() != null; *

void findJDBCDriver (  ) 

Attempts to load JDBC driver class.

require [targetPlugIn_created] targetPlugIn() != null; *

void findPlugin (  ) 

Attempts to load JDBCPlugIn or sub-class and verify related configuration.

require [targetAdaptor_created] targetAdaptor() != null; *

ensure [targetPlugIn_created] targetPlugIn() != null; *

JDBCAdaptor targetAdaptor (  ) 

Returns an instance of JDBCAdaptor.

Returns:
an instance of 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

void testConnection (  ) 

Attempts to make connection to databas via JDBC.

require [targetPlugIn_created] targetPlugIn() != null; *


Member Data Documentation

NSDictionary _connectionDictionary [private]

JDBCAdaptor _targetAdaptor [private]

JDBCPlugIn _targetPlugIn [private]

final Logger log = Logger.getLogger("er.transaction.adaptor.ConnectionAnalyzer") [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:15 2012 for Project Wonder by  doxygen 1.5.8