org.apache.jetspeed.components.rdbms.ojb
Class ConnectionRepositoryEntry.MinimalDataSource

java.lang.Object
  extended by 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
           
 
Constructor Summary
ConnectionRepositoryEntry.MinimalDataSource(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor jcd)
          Create a new instance using the given JCD.
 
Method Summary
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 int getLoginTimeout()
           
 PrintWriter getLogWriter()
           
 void setLoginTimeout(int seconds)
           
 void setLogWriter(PrintWriter out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jcd

private org.apache.ojb.broker.metadata.JdbcConnectionDescriptor jcd
Constructor Detail

ConnectionRepositoryEntry.MinimalDataSource

public ConnectionRepositoryEntry.MinimalDataSource(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor jcd)
Create a new instance using the given JCD.

Method Detail

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.