All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.db.JDBC1DataSource

java.lang.Object
   |
   +----org.xmlmiddleware.utils.Pool
           |
           +----org.xmlmiddleware.db.ConnectionPool
                   |
                   +----org.xmlmiddleware.db.JDBC1DataSource

public class JDBC1DataSource
extends ConnectionPool
implements DataSource
Implements a JDBC 2.0 DataSource for a JDBC 1.0 driver.

Version:
2.0
Author:
Sean Walter, 2001

Constructor Index

 o JDBC1DataSource(String, String)
Create a new JDBC1DataSource.

Method Index

 o getConnection()
 o getConnection(String, String)
 o getLoginTimeout()
 o getLogWriter()
Always returns null.
 o setLoginTimeout(int)
 o setLogWriter(PrintWriter)
Does nothing.

Constructors

 o JDBC1DataSource
 public JDBC1DataSource(String driver,
                        String url)
Create a new JDBC1DataSource.

Methods

 o getConnection
 public Connection getConnection() throws SQLException
 o getConnection
 public Connection getConnection(String username,
                                 String password) throws SQLException
 o getLogWriter
 public PrintWriter getLogWriter() throws SQLException
Always returns null. See the code if you are using JDBC 2.0.

 o setLogWriter
 public void setLogWriter(PrintWriter out) throws SQLException
Does nothing. See the code if you are using JDBC 2.0.

 o setLoginTimeout
 public void setLoginTimeout(int seconds) throws SQLException
 o getLoginTimeout
 public int getLoginTimeout() throws SQLException

All Packages  Class Hierarchy  This Package  Previous  Next  Index