com.codestudio.sql
Class PoolMan
java.lang.Object
|
+--com.codestudio.sql.PoolMan
- All Implemented Interfaces:
- java.sql.Driver
- public class PoolMan
- extends java.lang.Object
- implements java.sql.Driver
The PoolMan class is the core Driver implementation.
It can be loaded via the DriverManager, and is also accessed
through the PoolManDataSource.
Method Summary |
boolean |
acceptsURL(java.lang.String url)
|
static boolean |
acceptsURLString(java.lang.String url)
|
static java.sql.Connection |
connect(java.lang.String url)
|
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties info)
|
static javax.sql.DataSource |
findDataSource()
|
static javax.sql.DataSource |
findDataSource(java.lang.String dbname)
Convenience method to return a named DataSource |
static javax.sql.DataSource |
getDataSource()
Convenience method, returns the default DataSource. |
static javax.sql.DataSource |
getDataSource(java.lang.String dbname)
Convenience method, merely calls findDataSource(dbname) |
int |
getMajorVersion()
|
int |
getMinorVersion()
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String url,
java.util.Properties info)
|
boolean |
jdbcCompliant()
|
static void |
main(java.lang.String[] args)
|
static boolean |
nameIsValid(java.lang.String dbname)
Determine whether the dbname is valid for this PoolMan instance. |
static void |
start()
Convenience method, not necessary if lazy loading is preferred. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTOCOL
public static java.lang.String PROTOCOL
XML_CONFIG_FILE
public static final java.lang.String XML_CONFIG_FILE
PROPS_CONFIG_FILE
public static final java.lang.String PROPS_CONFIG_FILE
VERSIONID
public static final int VERSIONID
RELEASEID
public static final int RELEASEID
STARTED
public static boolean STARTED
PoolMan
public PoolMan()
main
public static void main(java.lang.String[] args)
start
public static void start()
throws java.lang.Exception
- Convenience method, not necessary if lazy loading is preferred.
getDataSource
public static javax.sql.DataSource getDataSource()
throws java.sql.SQLException
- Convenience method, returns the default DataSource.
getDataSource
public static javax.sql.DataSource getDataSource(java.lang.String dbname)
throws java.sql.SQLException
- Convenience method, merely calls findDataSource(dbname)
findDataSource
public static javax.sql.DataSource findDataSource()
throws java.sql.SQLException
findDataSource
public static javax.sql.DataSource findDataSource(java.lang.String dbname)
throws java.sql.SQLException
- Convenience method to return a named DataSource
nameIsValid
public static boolean nameIsValid(java.lang.String dbname)
- Determine whether the dbname is valid for this PoolMan instance.
acceptsURL
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
- Specified by:
acceptsURL
in interface java.sql.Driver
acceptsURLString
public static boolean acceptsURLString(java.lang.String url)
connect
public java.sql.Connection connect(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Specified by:
connect
in interface java.sql.Driver
connect
public static java.sql.Connection connect(java.lang.String url)
throws java.sql.SQLException
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface java.sql.Driver
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface java.sql.Driver
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String url,
java.util.Properties info)
throws java.sql.SQLException
- Specified by:
getPropertyInfo
in interface java.sql.Driver
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface java.sql.Driver
Copyright © 1999-2001 The Code Studio. All Rights Reserved.