public class FBDataSource extends RootCommonDataSource implements javax.sql.DataSource, java.io.Serializable, javax.resource.Referenceable
FBDataSource is a ConnectionFactory for jdbc
Connection objects. All work is delegated to a ConnectionManager.| Constructor and Description |
|---|
FBDataSource(FBManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm) |
FBDataSource(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm) |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection() |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password) |
int |
getLoginTimeout() |
javax.naming.Reference |
getReference()
Get the JNDI
Reference for this DataSource. |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setReference(javax.naming.Reference ref)
Set the JNDI
Reference for this DataSource. |
<T> T |
unwrap(java.lang.Class<T> iface) |
getLogWriter, getParentLogger, setLogWriterpublic FBDataSource(javax.resource.spi.ManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
public FBDataSource(FBManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
public void setReference(javax.naming.Reference ref)
Reference for this DataSource.ref - The JNDI reference for this DataSourcepublic javax.naming.Reference getReference()
Reference for this DataSource.getReference in interface javax.naming.Referenceablepublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLExceptionpublic void setLoginTimeout(int seconds)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.CommonDataSourcejava.sql.SQLExceptionpublic int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout 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 <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
unwrap in interface java.sql.Wrapperjava.sql.SQLExceptionCopyright © 2001-2020 Jaybird (Firebird JDBC/JCA) team. All rights reserved.