java.lang.Object
org.firebirdsql.ds.RootCommonDataSource
org.firebirdsql.jdbc.FBDataSource
- All Implemented Interfaces:
Serializable
,Wrapper
,CommonDataSource
,DataSource
@InternalApi
public class FBDataSource
extends RootCommonDataSource
implements DataSource, Serializable
The class
FBDataSource
is a ConnectionFactory for jdbc Connection objects. All work is delegated to a
XcaConnectionManager.
This data source is for internal use inside Jaybird. For a simple data source, use
FBSimpleDataSource
, for XA FBXADataSource
.
If you need a standalone connection pool, consider using a connection pool implementation like HikariCP, c3p0 or DBCP.
- Author:
- David Jencks
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(String username, String password) int
boolean
isWrapperFor
(Class<?> iface) void
setLoginTimeout
(int seconds) <T> T
Methods inherited from class org.firebirdsql.ds.RootCommonDataSource
getLogWriter, getParentLogger, setLogWriter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder, getLogWriter, setLogWriter
-
Constructor Details
-
FBDataSource
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
setLoginTimeout
- Specified by:
setLoginTimeout
in interfaceCommonDataSource
- Specified by:
setLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
getLoginTimeout
- Specified by:
getLoginTimeout
in interfaceCommonDataSource
- Specified by:
getLoginTimeout
in interfaceDataSource
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-