|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.content.document.DataSourceHelper
A class to help getting a connection to a document jdbc connections.
JdbcHelper
Field Summary | |
static java.util.Properties |
jdbcProperties
Deprecated. The properties to give to the driver manager when getting a conection via a JDBC driver. |
Constructor Summary | |
DataSourceHelper()
Deprecated. |
Method Summary | |
static java.sql.Driver |
getDriver(java.lang.String driverCl)
Deprecated. Get a JDBC driver for the specified driver class name. |
static java.sql.Driver |
getDriver(java.lang.String url,
java.lang.String driverCl)
Deprecated. Gets the driver for the specified url and driver class. |
static java.lang.String |
getDriverClass(java.lang.String url)
Deprecated. Try to determine the driver class for the specified url. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.util.Properties jdbcProperties
Constructor Detail |
public DataSourceHelper()
Method Detail |
public static java.sql.Driver getDriver(java.lang.String url, java.lang.String driverCl) throws java.sql.SQLException
This does not use DriverManager at all.
url
- the jdbc url.driverCl
- the preferred driver class name (will use
getDriverClass if null).public static java.lang.String getDriverClass(java.lang.String url)
This does a best guess based upon some common JDBC drivers and their URL formats. It is generally better to specify the JDBC driver class name instead.
url
- the JDBC url.public static java.sql.Driver getDriver(java.lang.String driverCl) throws java.sql.SQLException
This is simply wrapper around Class.forName() that throws SQLExceptions on error.
driverCl
- the driver class name.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |