Package org.firebirdsql.jdbc
Class FBDataSource
- java.lang.Object
- 
- org.firebirdsql.ds.RootCommonDataSource
- 
- org.firebirdsql.jdbc.FBDataSource
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.sql.Wrapper,- javax.naming.Referenceable,- javax.resource.Referenceable,- javax.sql.CommonDataSource,- javax.sql.DataSource
 
 public class FBDataSource extends RootCommonDataSource implements javax.sql.DataSource, java.io.Serializable, javax.resource.Referenceable The classFBDataSourceis a ConnectionFactory for jdbc Connection objects. All work is delegated to a ConnectionManager.- Version:
- 1.0
- Author:
- David Jencks
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FBDataSource(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)FBDataSource(FBManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ConnectiongetConnection()java.sql.ConnectiongetConnection(java.lang.String username, java.lang.String password)intgetLoginTimeout()javax.naming.ReferencegetReference()Get the JNDIReferencefor this DataSource.booleanisWrapperFor(java.lang.Class<?> iface)voidsetLoginTimeout(int seconds)voidsetReference(javax.naming.Reference ref)Set the JNDIReferencefor this DataSource.<T> Tunwrap(java.lang.Class<T> iface)- 
Methods inherited from class org.firebirdsql.ds.RootCommonDataSourcegetLogWriter, getParentLogger, setLogWriter
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
- 
 
- 
- 
- 
Constructor Detail- 
FBDataSourcepublic FBDataSource(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm)
 - 
FBDataSourcepublic FBDataSource(FBManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm) 
 
- 
 - 
Method Detail- 
setReferencepublic void setReference(javax.naming.Reference ref) Set the JNDIReferencefor this DataSource.- Specified by:
- setReferencein interface- javax.resource.Referenceable
- Parameters:
- ref- The JNDI reference for this DataSource
 
 - 
getReferencepublic javax.naming.Reference getReference() Get the JNDIReferencefor this DataSource.- Specified by:
- getReferencein interface- javax.naming.Referenceable
- Returns:
- The JNDI reference
 
 - 
getConnectionpublic java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
- getConnectionin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
getConnectionpublic java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException- Specified by:
- getConnectionin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
setLoginTimeoutpublic void setLoginTimeout(int seconds) throws java.sql.SQLException- Specified by:
- setLoginTimeoutin interface- javax.sql.CommonDataSource
- Specified by:
- setLoginTimeoutin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
getLoginTimeoutpublic int getLoginTimeout() throws java.sql.SQLException- Specified by:
- getLoginTimeoutin interface- javax.sql.CommonDataSource
- Specified by:
- getLoginTimeoutin interface- javax.sql.DataSource
- Throws:
- java.sql.SQLException
 
 - 
isWrapperForpublic boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
- isWrapperForin interface- java.sql.Wrapper
- Throws:
- java.sql.SQLException
 
 - 
unwrappublic <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
- unwrapin interface- java.sql.Wrapper
- Throws:
- java.sql.SQLException
 
 
- 
 
-