org.sadun.util.pool.connection
Class SQLContext

java.lang.Object
  extended byorg.sadun.util.pool.connection.SQLContext

public class SQLContext
extends java.lang.Object

An SQL Context declares a set of jdbc driver names and a classpath where to load them from.

Author:
Cristiano Sadun

Constructor Summary
SQLContext()
           
SQLContext(java.lang.String jdbcDriverNamesList)
           
SQLContext(java.lang.String[] jdbcDriverNames)
           
SQLContext(java.lang.String classPath, java.lang.String[] jdbcDriverNames)
          Create an SQL Context with the given class path and jdbc drivers set.
 
Method Summary
 java.lang.String getClassPath()
           
 java.lang.String[] getFailedToLoadJdbcDrivers()
           
 java.lang.String[] getJdbcDriverNames()
           
 java.lang.String getJdbcDriverNamesAsString()
           
 java.lang.String[] getLoadedJdbcDrivers()
           
static void main(java.lang.String[] args)
           
 void setClassPath(java.lang.String classPath)
           
 void setJdbcDriverNames(java.lang.String[] jdbcDriverNames)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLContext

public SQLContext(java.lang.String classPath,
                  java.lang.String[] jdbcDriverNames)
Create an SQL Context with the given class path and jdbc drivers set.

Parameters:
jdbcDriverNames - the names of the jdbc driver classes

SQLContext

public SQLContext(java.lang.String[] jdbcDriverNames)

SQLContext

public SQLContext(java.lang.String jdbcDriverNamesList)

SQLContext

public SQLContext()
Method Detail

setJdbcDriverNames

public void setJdbcDriverNames(java.lang.String[] jdbcDriverNames)

toString

public java.lang.String toString()

getClassPath

public java.lang.String getClassPath()
Returns:

setClassPath

public void setClassPath(java.lang.String classPath)
Parameters:
classPath -

getFailedToLoadJdbcDrivers

public java.lang.String[] getFailedToLoadJdbcDrivers()
Returns:

getJdbcDriverNames

public java.lang.String[] getJdbcDriverNames()
Returns:

getLoadedJdbcDrivers

public java.lang.String[] getLoadedJdbcDrivers()
Returns:

main

public static void main(java.lang.String[] args)

getJdbcDriverNamesAsString

public java.lang.String getJdbcDriverNamesAsString()
Returns: