|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.base.JDBCConnectionManager
Field Summary | |
private java.util.Hashtable |
connections
|
private static java.lang.String |
copyright
|
private java.util.Vector |
drivers
|
(package private) static JDBCConnectionManager |
singleton
|
private java.util.Hashtable |
specs
|
private static java.util.Hashtable |
sqlTypeTable
|
Constructor Summary | |
JDBCConnectionManager()
Constructs a new JDBCConnectionManager, sets up the SQLType hashtable, and sets the singleton current to itself |
Method Summary | |
private static java.util.Hashtable |
buildSQLTypeTable()
This method builds the hashtable that maps the SQLTypes(int) to a field class |
protected DatabaseConnection |
connectUsingSpec(DatabaseConnectionSpec aConnSpec)
This method attempt to create a connection using the passed connection spec |
boolean |
disconnectUsingSpec(DatabaseConnectionSpec aConnSpec)
Unregisters the connection and disconnects the connection if there are no other registered users for the connection. |
DatabaseConnection |
getConnectionAtAlias(java.lang.String anAlias)
This returns the active connection identified by anAlias |
static JDBCConnectionManager |
getJDBCConnectionManager(java.lang.String driverName)
|
static java.util.Hashtable |
getSQLTypeTable()
This method was created by a SmartGuide. |
protected void |
registerConnection(DatabaseConnection aConnection)
This method registers the active connection aConnection with its alias |
protected void |
registerDriver(java.lang.String aDriverName)
Registers the JDBC Driver Name aDriverName after a successful load of this driver. |
static JDBCConnectionManager |
singleton()
Returns the static singleton instance of the JDBC Connection Manager. |
protected boolean |
unregisterConnection(DatabaseConnection aConnection)
This unregisters the active connection identified by its alias |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static java.util.Hashtable sqlTypeTable
private java.util.Hashtable connections
private java.util.Hashtable specs
static JDBCConnectionManager singleton
private java.util.Vector drivers
private static final java.lang.String copyright
Constructor Detail |
public JDBCConnectionManager()
Method Detail |
private static java.util.Hashtable buildSQLTypeTable()
protected DatabaseConnection connectUsingSpec(DatabaseConnectionSpec aConnSpec) throws java.sql.SQLException, DataException
public boolean disconnectUsingSpec(DatabaseConnectionSpec aConnSpec) throws java.sql.SQLException, DataException, java.lang.ClassNotFoundException
.Returns false if the DatabaseConnectionSpec does not represent a registered connection. A disconnect is not done for unregistered connections.
public DatabaseConnection getConnectionAtAlias(java.lang.String anAlias)
public static JDBCConnectionManager getJDBCConnectionManager(java.lang.String driverName) throws java.lang.ClassNotFoundException
public static java.util.Hashtable getSQLTypeTable()
aDRiverName
- java.lang.Stringprotected void registerConnection(DatabaseConnection aConnection)
protected void registerDriver(java.lang.String aDriverName) throws java.lang.ClassNotFoundException
public static JDBCConnectionManager singleton()
protected boolean unregisterConnection(DatabaseConnection aConnection)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |