FBSimpleDataSource for non-pooling, this implementation
only works correctly with the deprecated FBConnectionPoolDataSource and
DriverConnectionPoolDataSource classespublic class SimpleDataSource extends RootCommonDataSource implements javax.sql.DataSource
DataSource interface that uses
ConnectionPoolDataSource as connection provider.| Constructor and Description |
|---|
SimpleDataSource(javax.sql.ConnectionPoolDataSource pool)
Deprecated.
Create instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Deprecated.
Get JDBC connection.
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Deprecated.
Get JDBC connection for the specified username and password.
|
int |
getLoginTimeout()
Deprecated.
|
boolean |
isWrapperFor(java.lang.Class iface)
Deprecated.
|
void |
setLoginTimeout(int seconds)
Deprecated.
|
java.lang.Object |
unwrap(java.lang.Class iface)
Deprecated.
|
getLogWriter, getParentLogger, setLogWriterpublic SimpleDataSource(javax.sql.ConnectionPoolDataSource pool)
pool - instance of ConnectionPoolDataSource that will provide
connections to this data source.public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourceConnection from this data source.java.sql.SQLException - if connection cannot be obtained.public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourceusername - username for new connection.password - password corresponding to the username.Connection.java.sql.SQLException - if connection cannot be obtained.public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic boolean isWrapperFor(java.lang.Class iface)
throws java.sql.SQLException
isWrapperFor in interface java.sql.Wrapperjava.sql.SQLExceptionpublic java.lang.Object unwrap(java.lang.Class iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.