Package org.firebirdsql.jdbc
Class FBDataSource
java.lang.Object
org.firebirdsql.ds.RootCommonDataSource
org.firebirdsql.jdbc.FBDataSource
- All Implemented Interfaces:
Serializable,Wrapper,Referenceable,javax.resource.Referenceable,CommonDataSource,DataSource
public class FBDataSource
extends RootCommonDataSource
implements DataSource, Serializable, javax.resource.Referenceable
The class
FBDataSource is a ConnectionFactory for jdbc
Connection objects. All work is delegated to a ConnectionManager.- Version:
- 1.0
- Author:
- David Jencks
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFBDataSource(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm) FBDataSource(FBManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm) -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(String username, String password) intGet the JNDIReferencefor this DataSource.booleanisWrapperFor(Class<?> iface) voidsetLoginTimeout(int seconds) voidsetReference(Reference ref) Set the JNDIReferencefor this DataSource.<T> TMethods inherited from class org.firebirdsql.ds.RootCommonDataSource
getLogWriter, getParentLogger, setLogWriterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLoggerMethods inherited from interface javax.sql.DataSource
createConnectionBuilder, getLogWriter, setLogWriter
-
Constructor Details
-
FBDataSource
public FBDataSource(javax.resource.spi.ManagedConnectionFactory mcf, javax.resource.spi.ConnectionManager cm) -
FBDataSource
-
-
Method Details
-
setReference
Set the JNDIReferencefor this DataSource.- Specified by:
setReferencein interfacejavax.resource.Referenceable- Parameters:
ref- The JNDI reference for this DataSource
-
getReference
Get the JNDIReferencefor this DataSource.- Specified by:
getReferencein interfaceReferenceable- Returns:
- The JNDI reference
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceDataSource- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeoutin interfaceCommonDataSource- Specified by:
setLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeoutin interfaceCommonDataSource- Specified by:
getLoginTimeoutin interfaceDataSource- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-