All Packages Class Hierarchy This Package Previous Next Index
Class org.xmlmiddleware.db.ArrayDataSource
java.lang.Object
|
+----org.xmlmiddleware.utils.Pool
|
+----org.xmlmiddleware.db.ConnectionPool
|
+----org.xmlmiddleware.db.ArrayDataSource
- public class ArrayDataSource
- extends ConnectionPool
- implements DataSource
Implements a JDBC 2.0 DataSource for an array of connections.
- Version:
- 2.0
- Author:
- Sean Walter, 2001
-
ArrayDataSource(Connection)
- Create a new ArrayDataSource.
-
ArrayDataSource(Connection[])
- Create a new ArrayDataSource.
-
getConnection()
- Get the next available connection from the array.
-
getConnection(String, String)
- Get the next available connection from the array.
-
getLoginTimeout()
- Always returns -1.
-
getLogWriter()
- Always returns null.
-
setLoginTimeout(int)
- Login timeout parameter ignored.
-
setLogWriter(PrintWriter)
- Log writer parameter ignored.
ArrayDataSource
public ArrayDataSource(Connection conn)
- Create a new ArrayDataSource. (Convenience method for single connection.)
- Parameters:
- conn - The connection.
ArrayDataSource
public ArrayDataSource(Connection conns[])
- Create a new ArrayDataSource.
- Parameters:
- s - conns An array of connections.
getConnection
public Connection getConnection() throws SQLException
- Get the next available connection from the array.
getConnection
public Connection getConnection(String username,
String password) throws SQLException
- Get the next available connection from the array.
The user name and password are ignored.
getLogWriter
public PrintWriter getLogWriter() throws SQLException
- Always returns null.
setLogWriter
public void setLogWriter(PrintWriter out) throws SQLException
- Log writer parameter ignored.
setLoginTimeout
public void setLoginTimeout(int seconds) throws SQLException
- Login timeout parameter ignored.
getLoginTimeout
public int getLoginTimeout() throws SQLException
- Always returns -1.
All Packages Class Hierarchy This Package Previous Next Index