|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dmonix.jdbc.DMConnectionDriver
Provides methods to load drivers and create new database connections.
Each instance of the class can handle one database base URL.
Copyright: Copyright (c) 2003
Company: dmonix.org
| Constructor Summary | |
DMConnectionDriver(java.lang.String driverClass,
java.lang.String url,
java.lang.String user,
java.lang.String password,
int initialSize)
Registers a generic driver manager and creates a connection pool. |
|
| Method Summary | |
boolean |
acceptsURL(java.lang.String url)
|
void |
closeConnections()
This will close and remove all connections from the pool. |
java.sql.Connection |
connect(java.lang.String url,
java.util.Properties props)
Gets a connection from the connection pool. |
int |
getMajorVersion()
Returns the MAJOR version of the driver. |
int |
getMinorVersion()
Returns the MINOR version of the driver. |
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String str,
java.util.Properties props)
This method does nothing. |
boolean |
jdbcCompliant()
The driver is not JDBC compliant |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DMConnectionDriver(java.lang.String driverClass,
java.lang.String url,
java.lang.String user,
java.lang.String password,
int initialSize)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.sql.SQLException
driverClass - url - user - password -
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.sql.SQLException| Method Detail |
public java.sql.Connection connect(java.lang.String url,
java.util.Properties props)
throws java.sql.SQLException
connect in interface java.sql.Driverurl - props - not used may as well be set to null
java.sql.SQLException
public boolean acceptsURL(java.lang.String url)
throws java.sql.SQLException
acceptsURL in interface java.sql.Driverjava.sql.SQLExceptionpublic void closeConnections()
public int getMajorVersion()
getMajorVersion in interface java.sql.Driverpublic int getMinorVersion()
getMinorVersion in interface java.sql.Driver
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String str,
java.util.Properties props)
getPropertyInfo in interface java.sql.Driverstr - props -
public boolean jdbcCompliant()
jdbcCompliant in interface java.sql.Driver
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||