Package org.firebirdsql.ds
Class FBConnectionPoolDataSource
java.lang.Object
org.firebirdsql.ds.RootCommonDataSource
org.firebirdsql.ds.FBAbstractCommonDataSource
org.firebirdsql.ds.FBConnectionPoolDataSource
- All Implemented Interfaces:
Referenceable,CommonDataSource,ConnectionPoolDataSource,FirebirdConnectionProperties
public class FBConnectionPoolDataSource
extends FBAbstractCommonDataSource
implements ConnectionPoolDataSource, Referenceable
Bare-bones implementation of
ConnectionPoolDataSource.
Please be aware that this is not a connectionpool. This class provides PooledConnection objects for connection pool implementations (eg as provided by a JEE application server). If you need a standalone connectionpool, consider using a connectionpool implementation like c3p0, BoneCP or DBCP.
- Since:
- 2.2
- Author:
- Mark Rotteveel
-
Field Summary
Fields inherited from class org.firebirdsql.ds.FBAbstractCommonDataSource
lock, REF_DATABASE_NAME, REF_DESCRIPTION, REF_PORT_NUMBER, REF_PROPERTIES, REF_SERVER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidMethod to check if this DataSource has not yet started.getPooledConnection(String user, String password) Methods inherited from class org.firebirdsql.ds.FBAbstractCommonDataSource
getAuthPlugins, getBlobBufferSize, getBuffersNumber, getCharSet, getConnectionProperties, getConnectTimeout, getDatabase, getDatabaseName, getDatabaseParameterBuffer, getDataTypeBind, getDbCryptConfig, getDefaultIsolation, getDefaultTransactionIsolation, getDescription, getEncoding, getGeneratedKeysEnabled, getLoginTimeout, getNonStandardProperty, getPassword, getPortNumber, getRoleName, getServerName, getSessionTimeZone, getSocketBufferSize, getSoTimeout, getSqlDialect, getTpbMapping, getTransactionParameters, getType, getUser, getUserName, getWireCrypt, isDefaultResultSetHoldable, isIgnoreProcedureType, isTimestampUsesLocalTimezone, isUseFirebirdAutocommit, isUseStandardUdf, isUseStreamBlobs, isWireCompression, setAuthPlugins, setBlobBufferSize, setBuffersNumber, setCharSet, setConnectionProperties, setConnectTimeout, setDatabase, setDatabase, setDatabaseName, setDataTypeBind, setDbCryptConfig, setDefaultIsolation, setDefaultResultSetHoldable, setDefaultTransactionIsolation, setDescription, setEncoding, setGeneratedKeysEnabled, setIgnoreProcedureType, setLoginTimeout, setNonStandardProperty, setNonStandardProperty, setPassword, setPortNumber, setRoleName, setServerName, setSessionTimeZone, setSocketBufferSize, setSoTimeout, setSqlDialect, setTimestampUsesLocalTimezone, setTpbMapping, setTransactionParameters, setType, setUseFirebirdAutocommit, setUser, setUserName, setUseStandardUdf, setUseStreamBlobs, setWireCompression, setWireCrypt, updateReferenceMethods 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.ConnectionPoolDataSource
createPooledConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Constructor Details
-
FBConnectionPoolDataSource
public FBConnectionPoolDataSource()
-
-
Method Details
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
getPooledConnection
- Specified by:
getPooledConnectionin interfaceConnectionPoolDataSource- Throws:
SQLException
-
checkNotStarted
protected void checkNotStarted()Description copied from class:FBAbstractCommonDataSourceMethod to check if this DataSource has not yet started.Implementations should throw IllegalStateException when the DataSource is already in use and modifying properties is not allowed.
- Specified by:
checkNotStartedin classFBAbstractCommonDataSource
-
getReference
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-