org.apache.jetspeed.components.rdbms.ojb
Class ConnectionRepositoryEntry.MinimalDataSource
java.lang.Object
org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource
- All Implemented Interfaces:
- DataSource
- Enclosing class:
- ConnectionRepositoryEntry
private class ConnectionRepositoryEntry.MinimalDataSource
- extends Object
- implements DataSource
a minimal DataSource implementation that satisfies the requirements
of JdbcMetadataUtil.
Field Summary |
private org.apache.ojb.broker.metadata.JdbcConnectionDescriptor |
jcd
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jcd
private org.apache.ojb.broker.metadata.JdbcConnectionDescriptor jcd
ConnectionRepositoryEntry.MinimalDataSource
public ConnectionRepositoryEntry.MinimalDataSource(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor jcd)
- Create a new instance using the given JCD.
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.getConnection(java.lang.String, java.lang.String)
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.getLoginTimeout()
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.getLogWriter()
setLoginTimeout
public void setLoginTimeout(int seconds)
throws SQLException
- Specified by:
setLoginTimeout
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.setLoginTimeout(int)
setLogWriter
public void setLogWriter(PrintWriter out)
throws SQLException
- Specified by:
setLogWriter
in interface DataSource
- Throws:
SQLException
- See Also:
DataSource.setLogWriter(java.io.PrintWriter)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.