com.solarmetric.rd.kodo.impl.jdbc.schema
Class DataSourceFactory.KodoDataSource
java.lang.Object
|
+--com.solarmetric.rd.jdbc.DelegatingDataSource
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.DataSourceFactory.KodoDataSource
- All Implemented Interfaces:
- javax.sql.DataSource
- Enclosing class:
- DataSourceFactory
- public static class DataSourceFactory.KodoDataSource
- extends DelegatingDataSource
A data source wrapper with kodo-specific behavior; namely, it allows
the dictionary to wrap connections, and delegates to the no-args
getConnection() method if the
getConnection(String,String) method is called with null
user data.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DataSourceFactory.KodoDataSource
public DataSourceFactory.KodoDataSource(javax.sql.DataSource ds,
com.solarmetric.rd.kodo.impl.jdbc.conf.JDBCConfiguration conf)
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource- Overrides:
getConnection in class DelegatingDataSource
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.lang.String user,
java.lang.String pass)
throws java.sql.SQLException
- Specified by:
getConnection in interface javax.sql.DataSource- Overrides:
getConnection in class DelegatingDataSource
java.sql.SQLException
close
public void close()
Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.