org.sadun.util.pool.connection
Class SQLContext
java.lang.Object
org.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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()
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: